Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get confused about {\tt } and \verb" " #1

Closed
jlwangPoincare opened this issue Sep 23, 2015 · 3 comments
Closed

Get confused about {\tt } and \verb" " #1

jlwangPoincare opened this issue Sep 23, 2015 · 3 comments

Comments

@jlwangPoincare
Copy link

In line 4796, two different styles were used to display almost the same thing:
blah blah \verb"'dx is 3'" blah blah {\tt 'dy is 4'} blah

They have different displaying effects. Why they are used in this way?

@AllenDowney
Copy link
Owner

I generally use {\tt} because it's easier to type, but have to use \verb""
for some special characters like underscore. They should have the same
effect. What difference are you seeing?

On Wed, Sep 23, 2015 at 4:15 AM, Jialiu Wang notifications@github.com
wrote:

In line 4796, two different styles were used to display almost the same
thing:
blah blah \verb"'dx is 3'" blah blah {\tt 'dy is 4'} blah

They have different displaying effects. Why they are used in this way?


Reply to this email directly or view it on GitHub
#1.

@jlwangPoincare
Copy link
Author

In my environment, when the PDF file is generated, the quotation marks are
displayed in different ways. The ones in \verb"'dx is 3'" (a pair of single
quotation marks inside the double quotation marks) look like vertical
quotation marks, while the ones in {\tt 'dy is 4'} seem like written
towards the down-left direction.

This is what the paragraph looks like on my computer.

2015-09-23 5:27 GMT-07:00 Allen Downey notifications@github.com:

I generally use {\tt} because it's easier to type, but have to use \verb""
for some special characters like underscore. They should have the same
effect. What difference are you seeing?

On Wed, Sep 23, 2015 at 4:15 AM, Jialiu Wang notifications@github.com
wrote:

In line 4796, two different styles were used to display almost the same
thing:
blah blah \verb"'dx is 3'" blah blah {\tt 'dy is 4'} blah

They have different displaying effects. Why they are used in this way?


Reply to this email directly or view it on GitHub
#1.


Reply to this email directly or view it on GitHub
#1 (comment)
.

@AllenDowney
Copy link
Owner

Ah, now I understand the issue. I will clean this up to make it
consistent. Thanks!

On Wed, Sep 23, 2015 at 2:42 PM, Jialiu Wang notifications@github.com
wrote:

In my environment, when the PDF file is generated, the quotation marks are
displayed in different ways. The ones in \verb"'dx is 3'" (a pair of single
quotation marks inside the double quotation marks) look like vertical
quotation marks, while the ones in {\tt 'dy is 4'} seem like written
towards the down-left direction.

This is what the paragraph looks like on my computer.

2015-09-23 5:27 GMT-07:00 Allen Downey notifications@github.com:

I generally use {\tt} because it's easier to type, but have to use
\verb""
for some special characters like underscore. They should have the same
effect. What difference are you seeing?

On Wed, Sep 23, 2015 at 4:15 AM, Jialiu Wang notifications@github.com
wrote:

In line 4796, two different styles were used to display almost the same
thing:
blah blah \verb"'dx is 3'" blah blah {\tt 'dy is 4'} blah

They have different displaying effects. Why they are used in this way?


Reply to this email directly or view it on GitHub
#1.


Reply to this email directly or view it on GitHub
<
#1 (comment)

.


Reply to this email directly or view it on GitHub
#1 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants