Use default typewriter font only for a part of the documentDouble quotes with monospaced font and...
Sometimes a banana is just a banana
Can you use a beast's innate abilities while polymorphed?
What do the pedals on grand pianos do?
Did Amazon pay $0 in taxes last year?
Second-rate spelling
Can chords be played on the flute?
Can you benefit from a Hammer of Thunderbolts’s Strength increase by holding it with something else than your hands?
Are small insurances worth it
What's the difference between a cart and a wagon?
Has the Isbell–Freyd criterion ever been used to check that a category is concretisable?
Is there any relevance to Thor getting his hair cut other than comedic value?
How can I be pwned if I'm not registered on that site?
Why is working on the same position for more than 15 years not a red flag?
"Murder!" The knight said
Difference between 小吃 and 零食
Six real numbers so that product of any five is the sixth one
Do Hexblade warlocks choose their spells from the Hexblade spell list or the warlock spell list?
chrony vs. systemd-timesyncd – What are the differences and use cases as NTP clients?
Whom do I have to contact for a ticket refund in case of denied boarding (in the EU)?
How can I handle a player who pre-plans arguments about my rulings on RAW?
Pure Functions: Does "No Side Effects" Imply "Always Same Output, Given Same Input"?
How to deny access to SQL Server to certain login over SSMS, but allow over .Net SqlClient Data Provider
How to count words in a line
Is there a frame of reference in which I was born before I was conceived?
Use default typewriter font only for a part of the document
Double quotes with monospaced font and LuaLaTeXConflict between color, graphicx and libertineHow to use condensed typewriter with latin modern and docUsing many typewriter fonts in a single documentChange font only in a tikzpicture in beamer document classHow to influence a command throughout the document?uppercase font for whole document?Typewriter font for math symbols (∃, ∀) in scaled verbatim environment for pdflatexWho changed my Chinese character?Using OCR-B as default TT font with T1 fontenc
I'm using the Inconsolata
font provided by the zi4
package. But for a single macro, I want to use the default typewriter font (so not Inconsolata
). Every other occurrence of texttt
in the document should use Inconsolata
.
documentclass{article}
usepackage[varqu]{zi4}
newcommand{csharp}{Ctexttt{#}} % How can I use the default typewriter font here?
begin{document}
This should be texttt{Inconsolata}.
end{document}
fonts typewriter
add a comment |
I'm using the Inconsolata
font provided by the zi4
package. But for a single macro, I want to use the default typewriter font (so not Inconsolata
). Every other occurrence of texttt
in the document should use Inconsolata
.
documentclass{article}
usepackage[varqu]{zi4}
newcommand{csharp}{Ctexttt{#}} % How can I use the default typewriter font here?
begin{document}
This should be texttt{Inconsolata}.
end{document}
fonts typewriter
add a comment |
I'm using the Inconsolata
font provided by the zi4
package. But for a single macro, I want to use the default typewriter font (so not Inconsolata
). Every other occurrence of texttt
in the document should use Inconsolata
.
documentclass{article}
usepackage[varqu]{zi4}
newcommand{csharp}{Ctexttt{#}} % How can I use the default typewriter font here?
begin{document}
This should be texttt{Inconsolata}.
end{document}
fonts typewriter
I'm using the Inconsolata
font provided by the zi4
package. But for a single macro, I want to use the default typewriter font (so not Inconsolata
). Every other occurrence of texttt
in the document should use Inconsolata
.
documentclass{article}
usepackage[varqu]{zi4}
newcommand{csharp}{Ctexttt{#}} % How can I use the default typewriter font here?
begin{document}
This should be texttt{Inconsolata}.
end{document}
fonts typewriter
fonts typewriter
asked 8 mins ago
Thomas FlinkowThomas Flinkow
1727
1727
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can use the fontfamily
command.
documentclass{article}
usepackage[varqu]{zi4}
newcommand{csharp}{C{fontfamily{cmtt}selectfont#}}
begin{document}
csharppar
This should be texttt{Inconsolata}.
end{document}
Thank you very much, works perfect for me :)
– Thomas Flinkow
1 min ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477821%2fuse-default-typewriter-font-only-for-a-part-of-the-document%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use the fontfamily
command.
documentclass{article}
usepackage[varqu]{zi4}
newcommand{csharp}{C{fontfamily{cmtt}selectfont#}}
begin{document}
csharppar
This should be texttt{Inconsolata}.
end{document}
Thank you very much, works perfect for me :)
– Thomas Flinkow
1 min ago
add a comment |
You can use the fontfamily
command.
documentclass{article}
usepackage[varqu]{zi4}
newcommand{csharp}{C{fontfamily{cmtt}selectfont#}}
begin{document}
csharppar
This should be texttt{Inconsolata}.
end{document}
Thank you very much, works perfect for me :)
– Thomas Flinkow
1 min ago
add a comment |
You can use the fontfamily
command.
documentclass{article}
usepackage[varqu]{zi4}
newcommand{csharp}{C{fontfamily{cmtt}selectfont#}}
begin{document}
csharppar
This should be texttt{Inconsolata}.
end{document}
You can use the fontfamily
command.
documentclass{article}
usepackage[varqu]{zi4}
newcommand{csharp}{C{fontfamily{cmtt}selectfont#}}
begin{document}
csharppar
This should be texttt{Inconsolata}.
end{document}
answered 6 mins ago
TeXnicianTeXnician
25.3k63389
25.3k63389
Thank you very much, works perfect for me :)
– Thomas Flinkow
1 min ago
add a comment |
Thank you very much, works perfect for me :)
– Thomas Flinkow
1 min ago
Thank you very much, works perfect for me :)
– Thomas Flinkow
1 min ago
Thank you very much, works perfect for me :)
– Thomas Flinkow
1 min ago
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477821%2fuse-default-typewriter-font-only-for-a-part-of-the-document%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown