How to capitalise every letter in odd position as in memes?How to test if argument is a single space?How to make a command for a composed symbol to work with all font sizes?Font and Style considerations for business reportingAdjusting the position of dotFirst letter in gothic fontHow do you format a Dates Contraction in LaTex?How to change the font size of a particular letterTraditional German e sans-serif letterHow to selectively substitute a letter with another symbol representing the same letterEquivalent of fontenc in LuaLaTexLetter combination 'fi' won't display using mathgifg.sty
What did the 'turbo' button actually do?
What is Orcus doing with Mind Flayers in the art on the last page of Volo's Guide to Monsters?
Cisco 3750X Power Cable
Testing using real data of the customer
Possibility of faking someone's public key
Why does the hash of infinity have the digits of π?
How do you earn the reader's trust?
What is the purpose of the yellow wired panels on the IBM 360 Model 20?
Adding location of start and end points to the attribute table
How does Dreadhorde Arcanist interact with split cards?
To exponential digit growth and beyond!
Why isn't Tyrion mentioned in 'A song of Ice and Fire'?
Is there an idiom that means that you are in a very strong negotiation position in a negotiation?
Ribbon Cable Cross Talk - Is there a fix after the fact?
How to deceive the MC
Unary Enumeration
Are there historical examples of audiences drawn to a work that was "so bad it's good"?
One word for 'the thing that attracts me'?
Is keeping the forking link on a true fork necessary (Github/GPL)?
Can a multiclassed Kensei monk/Swashbuckler rogue use an offhand finesse weapon to trigger Sneak Attack, without using a bonus action?
Are cells guaranteed to get at least one mitochondrion when they divide?
Why does Bran want to find Drogon?
Using too much dialogue?
Papers on ArXiv as main references
How to capitalise every letter in odd position as in memes?
How to test if argument is a single space?How to make a command for a composed symbol to work with all font sizes?Font and Style considerations for business reportingAdjusting the position of dotFirst letter in gothic fontHow do you format a Dates Contraction in LaTex?How to change the font size of a particular letterTraditional German e sans-serif letterHow to selectively substitute a letter with another symbol representing the same letterEquivalent of fontenc in LuaLaTexLetter combination 'fi' won't display using mathgifg.sty
For example, SoMeThInGlIkEtHiS
How might one achieve this? I am writing a meme paper this is important. . .
fonts
New contributor
add a comment |
For example, SoMeThInGlIkEtHiS
How might one achieve this? I am writing a meme paper this is important. . .
fonts
New contributor
add a comment |
For example, SoMeThInGlIkEtHiS
How might one achieve this? I am writing a meme paper this is important. . .
fonts
New contributor
For example, SoMeThInGlIkEtHiS
How might one achieve this? I am writing a meme paper this is important. . .
fonts
fonts
New contributor
New contributor
edited 1 hour ago
JouleV
18.6k23072
18.6k23072
New contributor
asked 2 hours ago
Evan PuEvan Pu
1112
1112
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
A LaTeX3 version, adapted from egreg's answer here:
documentclassarticle
usepackagexparse
usepackageexpl3
ExplSyntaxOn
NewDocumentCommandmarklettersm
int_zero:N l_tmpa_int
tl_set:Nn l_tmpa_tl #1
% replace spaces with something different
tl_replace_all:Nnn l_tmpa_tl ~ c_space_tl
tl_map_inline:Nn l_tmpa_tl
tl_if_blank:eTF ##1
~ % don't advance the counter and issue a space
int_if_odd:nTF l_tmpa_int tex_lowercase:D tex_uppercase:D ##1
int_incr:N l_tmpa_int
prg_generate_conditional_variant:Nnn tl_if_blank:n e T,F,TF,p
ExplSyntaxOff
begindocument
markletterssomething like this
enddocument
add a comment |
Here's a slightly different LaTeX3 implementation using regular expressions. A space character is treated as a letter so that the two lines
CaPiTaLiSeSomething like this
CaPiTaLiSeSomethinglikethis
produce slightly different capitalisations:
Here is the code:
documentclassarticle
usepackagexparse
ExplSyntaxOn
seq_new:N l_evan_letters_seq
cs_new_protected_nopar:Nn evan_make_upper:n
str_upper_case:n #1
letevan_capitalise:n evan_make_lower:n
cs_new_protected_nopar:Nn evan_make_lower:n
str_lower_case:n #1
letevan_capitalise:n evan_make_upper:n
NewDocumentCommandCaPiTaLiSem
regex_split:nnN #1 l_evan_letters_seq
letevan_capitalise:n evan_make_upper:n
seq_map_inline:Nn l_evan_letters_seq evan_capitalise:n ##1
ExplSyntaxOff
begindocument
CaPiTaLiSeSomething like this
CaPiTaLiSeSomethinglikethis
enddocument
Rather than incrementing a counter I have a dummy macro evan_capitalise:n
that swaps between choosing upper and lower case.
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
);
);
Evan Pu is a new contributor. Be nice, and check out our Code of Conduct.
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%2f491858%2fhow-to-capitalise-every-letter-in-odd-position-as-in-memes%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
A LaTeX3 version, adapted from egreg's answer here:
documentclassarticle
usepackagexparse
usepackageexpl3
ExplSyntaxOn
NewDocumentCommandmarklettersm
int_zero:N l_tmpa_int
tl_set:Nn l_tmpa_tl #1
% replace spaces with something different
tl_replace_all:Nnn l_tmpa_tl ~ c_space_tl
tl_map_inline:Nn l_tmpa_tl
tl_if_blank:eTF ##1
~ % don't advance the counter and issue a space
int_if_odd:nTF l_tmpa_int tex_lowercase:D tex_uppercase:D ##1
int_incr:N l_tmpa_int
prg_generate_conditional_variant:Nnn tl_if_blank:n e T,F,TF,p
ExplSyntaxOff
begindocument
markletterssomething like this
enddocument
add a comment |
A LaTeX3 version, adapted from egreg's answer here:
documentclassarticle
usepackagexparse
usepackageexpl3
ExplSyntaxOn
NewDocumentCommandmarklettersm
int_zero:N l_tmpa_int
tl_set:Nn l_tmpa_tl #1
% replace spaces with something different
tl_replace_all:Nnn l_tmpa_tl ~ c_space_tl
tl_map_inline:Nn l_tmpa_tl
tl_if_blank:eTF ##1
~ % don't advance the counter and issue a space
int_if_odd:nTF l_tmpa_int tex_lowercase:D tex_uppercase:D ##1
int_incr:N l_tmpa_int
prg_generate_conditional_variant:Nnn tl_if_blank:n e T,F,TF,p
ExplSyntaxOff
begindocument
markletterssomething like this
enddocument
add a comment |
A LaTeX3 version, adapted from egreg's answer here:
documentclassarticle
usepackagexparse
usepackageexpl3
ExplSyntaxOn
NewDocumentCommandmarklettersm
int_zero:N l_tmpa_int
tl_set:Nn l_tmpa_tl #1
% replace spaces with something different
tl_replace_all:Nnn l_tmpa_tl ~ c_space_tl
tl_map_inline:Nn l_tmpa_tl
tl_if_blank:eTF ##1
~ % don't advance the counter and issue a space
int_if_odd:nTF l_tmpa_int tex_lowercase:D tex_uppercase:D ##1
int_incr:N l_tmpa_int
prg_generate_conditional_variant:Nnn tl_if_blank:n e T,F,TF,p
ExplSyntaxOff
begindocument
markletterssomething like this
enddocument
A LaTeX3 version, adapted from egreg's answer here:
documentclassarticle
usepackagexparse
usepackageexpl3
ExplSyntaxOn
NewDocumentCommandmarklettersm
int_zero:N l_tmpa_int
tl_set:Nn l_tmpa_tl #1
% replace spaces with something different
tl_replace_all:Nnn l_tmpa_tl ~ c_space_tl
tl_map_inline:Nn l_tmpa_tl
tl_if_blank:eTF ##1
~ % don't advance the counter and issue a space
int_if_odd:nTF l_tmpa_int tex_lowercase:D tex_uppercase:D ##1
int_incr:N l_tmpa_int
prg_generate_conditional_variant:Nnn tl_if_blank:n e T,F,TF,p
ExplSyntaxOff
begindocument
markletterssomething like this
enddocument
edited 1 hour ago
answered 1 hour ago
siracusasiracusa
5,60711730
5,60711730
add a comment |
add a comment |
Here's a slightly different LaTeX3 implementation using regular expressions. A space character is treated as a letter so that the two lines
CaPiTaLiSeSomething like this
CaPiTaLiSeSomethinglikethis
produce slightly different capitalisations:
Here is the code:
documentclassarticle
usepackagexparse
ExplSyntaxOn
seq_new:N l_evan_letters_seq
cs_new_protected_nopar:Nn evan_make_upper:n
str_upper_case:n #1
letevan_capitalise:n evan_make_lower:n
cs_new_protected_nopar:Nn evan_make_lower:n
str_lower_case:n #1
letevan_capitalise:n evan_make_upper:n
NewDocumentCommandCaPiTaLiSem
regex_split:nnN #1 l_evan_letters_seq
letevan_capitalise:n evan_make_upper:n
seq_map_inline:Nn l_evan_letters_seq evan_capitalise:n ##1
ExplSyntaxOff
begindocument
CaPiTaLiSeSomething like this
CaPiTaLiSeSomethinglikethis
enddocument
Rather than incrementing a counter I have a dummy macro evan_capitalise:n
that swaps between choosing upper and lower case.
add a comment |
Here's a slightly different LaTeX3 implementation using regular expressions. A space character is treated as a letter so that the two lines
CaPiTaLiSeSomething like this
CaPiTaLiSeSomethinglikethis
produce slightly different capitalisations:
Here is the code:
documentclassarticle
usepackagexparse
ExplSyntaxOn
seq_new:N l_evan_letters_seq
cs_new_protected_nopar:Nn evan_make_upper:n
str_upper_case:n #1
letevan_capitalise:n evan_make_lower:n
cs_new_protected_nopar:Nn evan_make_lower:n
str_lower_case:n #1
letevan_capitalise:n evan_make_upper:n
NewDocumentCommandCaPiTaLiSem
regex_split:nnN #1 l_evan_letters_seq
letevan_capitalise:n evan_make_upper:n
seq_map_inline:Nn l_evan_letters_seq evan_capitalise:n ##1
ExplSyntaxOff
begindocument
CaPiTaLiSeSomething like this
CaPiTaLiSeSomethinglikethis
enddocument
Rather than incrementing a counter I have a dummy macro evan_capitalise:n
that swaps between choosing upper and lower case.
add a comment |
Here's a slightly different LaTeX3 implementation using regular expressions. A space character is treated as a letter so that the two lines
CaPiTaLiSeSomething like this
CaPiTaLiSeSomethinglikethis
produce slightly different capitalisations:
Here is the code:
documentclassarticle
usepackagexparse
ExplSyntaxOn
seq_new:N l_evan_letters_seq
cs_new_protected_nopar:Nn evan_make_upper:n
str_upper_case:n #1
letevan_capitalise:n evan_make_lower:n
cs_new_protected_nopar:Nn evan_make_lower:n
str_lower_case:n #1
letevan_capitalise:n evan_make_upper:n
NewDocumentCommandCaPiTaLiSem
regex_split:nnN #1 l_evan_letters_seq
letevan_capitalise:n evan_make_upper:n
seq_map_inline:Nn l_evan_letters_seq evan_capitalise:n ##1
ExplSyntaxOff
begindocument
CaPiTaLiSeSomething like this
CaPiTaLiSeSomethinglikethis
enddocument
Rather than incrementing a counter I have a dummy macro evan_capitalise:n
that swaps between choosing upper and lower case.
Here's a slightly different LaTeX3 implementation using regular expressions. A space character is treated as a letter so that the two lines
CaPiTaLiSeSomething like this
CaPiTaLiSeSomethinglikethis
produce slightly different capitalisations:
Here is the code:
documentclassarticle
usepackagexparse
ExplSyntaxOn
seq_new:N l_evan_letters_seq
cs_new_protected_nopar:Nn evan_make_upper:n
str_upper_case:n #1
letevan_capitalise:n evan_make_lower:n
cs_new_protected_nopar:Nn evan_make_lower:n
str_lower_case:n #1
letevan_capitalise:n evan_make_upper:n
NewDocumentCommandCaPiTaLiSem
regex_split:nnN #1 l_evan_letters_seq
letevan_capitalise:n evan_make_upper:n
seq_map_inline:Nn l_evan_letters_seq evan_capitalise:n ##1
ExplSyntaxOff
begindocument
CaPiTaLiSeSomething like this
CaPiTaLiSeSomethinglikethis
enddocument
Rather than incrementing a counter I have a dummy macro evan_capitalise:n
that swaps between choosing upper and lower case.
answered 1 hour ago
AndrewAndrew
33.2k34786
33.2k34786
add a comment |
add a comment |
Evan Pu is a new contributor. Be nice, and check out our Code of Conduct.
Evan Pu is a new contributor. Be nice, and check out our Code of Conduct.
Evan Pu is a new contributor. Be nice, and check out our Code of Conduct.
Evan Pu is a new contributor. Be nice, and check out our Code of Conduct.
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%2f491858%2fhow-to-capitalise-every-letter-in-odd-position-as-in-memes%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