Convert all counters to base 6
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
Is it possible to change the numeration base of LaTeX? Actually I am looking for base 6.
I would like this change to apply to all counters (TOC, pages, chapters..).
I found this topic How can I make sure that all counters start at 0?
which is almost exactly what I want but I have not a base 10 to base 6 function.
makeatletter
def@arabic#1BASEVIrelax
def@roman#1romannumeralBASEVIrelax
def@Roman#1expandafter@slowromancapromannumeralBASEVIrelax @
makeatother
BASEVI
is just a placeholder.
To know more about the seximal system: seximal.net.
counters
New contributor
add a comment |Â
up vote
1
down vote
favorite
Is it possible to change the numeration base of LaTeX? Actually I am looking for base 6.
I would like this change to apply to all counters (TOC, pages, chapters..).
I found this topic How can I make sure that all counters start at 0?
which is almost exactly what I want but I have not a base 10 to base 6 function.
makeatletter
def@arabic#1BASEVIrelax
def@roman#1romannumeralBASEVIrelax
def@Roman#1expandafter@slowromancapromannumeralBASEVIrelax @
makeatother
BASEVI
is just a placeholder.
To know more about the seximal system: seximal.net.
counters
New contributor
What would base 6 Roman be? It doesn't make sense.
â egreg
1 hour ago
You are right, it is just the same.
â Blincer
41 mins ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Is it possible to change the numeration base of LaTeX? Actually I am looking for base 6.
I would like this change to apply to all counters (TOC, pages, chapters..).
I found this topic How can I make sure that all counters start at 0?
which is almost exactly what I want but I have not a base 10 to base 6 function.
makeatletter
def@arabic#1BASEVIrelax
def@roman#1romannumeralBASEVIrelax
def@Roman#1expandafter@slowromancapromannumeralBASEVIrelax @
makeatother
BASEVI
is just a placeholder.
To know more about the seximal system: seximal.net.
counters
New contributor
Is it possible to change the numeration base of LaTeX? Actually I am looking for base 6.
I would like this change to apply to all counters (TOC, pages, chapters..).
I found this topic How can I make sure that all counters start at 0?
which is almost exactly what I want but I have not a base 10 to base 6 function.
makeatletter
def@arabic#1BASEVIrelax
def@roman#1romannumeralBASEVIrelax
def@Roman#1expandafter@slowromancapromannumeralBASEVIrelax @
makeatother
BASEVI
is just a placeholder.
To know more about the seximal system: seximal.net.
counters
counters
New contributor
New contributor
New contributor
asked 1 hour ago
Blincer
1084
1084
New contributor
New contributor
What would base 6 Roman be? It doesn't make sense.
â egreg
1 hour ago
You are right, it is just the same.
â Blincer
41 mins ago
add a comment |Â
What would base 6 Roman be? It doesn't make sense.
â egreg
1 hour ago
You are right, it is just the same.
â Blincer
41 mins ago
What would base 6 Roman be? It doesn't make sense.
â egreg
1 hour ago
What would base 6 Roman be? It doesn't make sense.
â egreg
1 hour ago
You are right, it is just the same.
â Blincer
41 mins ago
You are right, it is just the same.
â Blincer
41 mins ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
A one liner:
documentclassarticle
usepackageexpl3
ExplSyntaxOn
cs_set:cpn @arabic #1 int_to_base:nn #1 6
ExplSyntaxOff
begindocument
newcountertest
loopifnumvaluetest<100
arabictest%
stepcountertest%
space
repeat
enddocument
Every counter that's defined to use arabic
will print in base six, including page
.
Beware: this will break all macros that abuse the<counter>
for obtaining the decimal representation of the counter instead of relying on its abstract value.
Better defining a suitable representation and choosing it for representing the counters you need.
documentclassarticle
usepackageexpl3
ExplSyntaxOnmakeatletter
cs_new:Npn @basesix #1 int_to_base:nn #1 6
cs_new:Npn basesix #1 exp_args:Nc @basesix c@#1
makeatotherExplSyntaxOff
begindocument
newcountertest
renewcommandthetestbasesixtest
loopifnumvaluetest<100
thetest
stepcountertest%
space
repeat
enddocument
add a comment |Â
up vote
2
down vote
documentclassarticle
usepackageexpl3
ExplSyntaxOn
defSIX#1expandafterint_to_base:nncsname c@#1endcsname6
ExplSyntaxOff
renewcommandthesectionSIXsection
renewcommandtheenumiSIXenumi
begindocument
sectionaa
beginenumerate
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
endenumerate
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
enddocument
Your knowledge ofexpl3
is astonishing!
â egreg
59 mins ago
@egreg Buono come il mio italiano
â David Carlisle
57 mins ago
Exactly so. :-)
â egreg
40 mins ago
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
A one liner:
documentclassarticle
usepackageexpl3
ExplSyntaxOn
cs_set:cpn @arabic #1 int_to_base:nn #1 6
ExplSyntaxOff
begindocument
newcountertest
loopifnumvaluetest<100
arabictest%
stepcountertest%
space
repeat
enddocument
Every counter that's defined to use arabic
will print in base six, including page
.
Beware: this will break all macros that abuse the<counter>
for obtaining the decimal representation of the counter instead of relying on its abstract value.
Better defining a suitable representation and choosing it for representing the counters you need.
documentclassarticle
usepackageexpl3
ExplSyntaxOnmakeatletter
cs_new:Npn @basesix #1 int_to_base:nn #1 6
cs_new:Npn basesix #1 exp_args:Nc @basesix c@#1
makeatotherExplSyntaxOff
begindocument
newcountertest
renewcommandthetestbasesixtest
loopifnumvaluetest<100
thetest
stepcountertest%
space
repeat
enddocument
add a comment |Â
up vote
2
down vote
accepted
A one liner:
documentclassarticle
usepackageexpl3
ExplSyntaxOn
cs_set:cpn @arabic #1 int_to_base:nn #1 6
ExplSyntaxOff
begindocument
newcountertest
loopifnumvaluetest<100
arabictest%
stepcountertest%
space
repeat
enddocument
Every counter that's defined to use arabic
will print in base six, including page
.
Beware: this will break all macros that abuse the<counter>
for obtaining the decimal representation of the counter instead of relying on its abstract value.
Better defining a suitable representation and choosing it for representing the counters you need.
documentclassarticle
usepackageexpl3
ExplSyntaxOnmakeatletter
cs_new:Npn @basesix #1 int_to_base:nn #1 6
cs_new:Npn basesix #1 exp_args:Nc @basesix c@#1
makeatotherExplSyntaxOff
begindocument
newcountertest
renewcommandthetestbasesixtest
loopifnumvaluetest<100
thetest
stepcountertest%
space
repeat
enddocument
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
A one liner:
documentclassarticle
usepackageexpl3
ExplSyntaxOn
cs_set:cpn @arabic #1 int_to_base:nn #1 6
ExplSyntaxOff
begindocument
newcountertest
loopifnumvaluetest<100
arabictest%
stepcountertest%
space
repeat
enddocument
Every counter that's defined to use arabic
will print in base six, including page
.
Beware: this will break all macros that abuse the<counter>
for obtaining the decimal representation of the counter instead of relying on its abstract value.
Better defining a suitable representation and choosing it for representing the counters you need.
documentclassarticle
usepackageexpl3
ExplSyntaxOnmakeatletter
cs_new:Npn @basesix #1 int_to_base:nn #1 6
cs_new:Npn basesix #1 exp_args:Nc @basesix c@#1
makeatotherExplSyntaxOff
begindocument
newcountertest
renewcommandthetestbasesixtest
loopifnumvaluetest<100
thetest
stepcountertest%
space
repeat
enddocument
A one liner:
documentclassarticle
usepackageexpl3
ExplSyntaxOn
cs_set:cpn @arabic #1 int_to_base:nn #1 6
ExplSyntaxOff
begindocument
newcountertest
loopifnumvaluetest<100
arabictest%
stepcountertest%
space
repeat
enddocument
Every counter that's defined to use arabic
will print in base six, including page
.
Beware: this will break all macros that abuse the<counter>
for obtaining the decimal representation of the counter instead of relying on its abstract value.
Better defining a suitable representation and choosing it for representing the counters you need.
documentclassarticle
usepackageexpl3
ExplSyntaxOnmakeatletter
cs_new:Npn @basesix #1 int_to_base:nn #1 6
cs_new:Npn basesix #1 exp_args:Nc @basesix c@#1
makeatotherExplSyntaxOff
begindocument
newcountertest
renewcommandthetestbasesixtest
loopifnumvaluetest<100
thetest
stepcountertest%
space
repeat
enddocument
edited 41 mins ago
answered 1 hour ago
egreg
694k8518443099
694k8518443099
add a comment |Â
add a comment |Â
up vote
2
down vote
documentclassarticle
usepackageexpl3
ExplSyntaxOn
defSIX#1expandafterint_to_base:nncsname c@#1endcsname6
ExplSyntaxOff
renewcommandthesectionSIXsection
renewcommandtheenumiSIXenumi
begindocument
sectionaa
beginenumerate
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
endenumerate
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
enddocument
Your knowledge ofexpl3
is astonishing!
â egreg
59 mins ago
@egreg Buono come il mio italiano
â David Carlisle
57 mins ago
Exactly so. :-)
â egreg
40 mins ago
add a comment |Â
up vote
2
down vote
documentclassarticle
usepackageexpl3
ExplSyntaxOn
defSIX#1expandafterint_to_base:nncsname c@#1endcsname6
ExplSyntaxOff
renewcommandthesectionSIXsection
renewcommandtheenumiSIXenumi
begindocument
sectionaa
beginenumerate
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
endenumerate
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
enddocument
Your knowledge ofexpl3
is astonishing!
â egreg
59 mins ago
@egreg Buono come il mio italiano
â David Carlisle
57 mins ago
Exactly so. :-)
â egreg
40 mins ago
add a comment |Â
up vote
2
down vote
up vote
2
down vote
documentclassarticle
usepackageexpl3
ExplSyntaxOn
defSIX#1expandafterint_to_base:nncsname c@#1endcsname6
ExplSyntaxOff
renewcommandthesectionSIXsection
renewcommandtheenumiSIXenumi
begindocument
sectionaa
beginenumerate
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
endenumerate
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
enddocument
documentclassarticle
usepackageexpl3
ExplSyntaxOn
defSIX#1expandafterint_to_base:nncsname c@#1endcsname6
ExplSyntaxOff
renewcommandthesectionSIXsection
renewcommandtheenumiSIXenumi
begindocument
sectionaa
beginenumerate
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
item aaa
endenumerate
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
sectionzzz
zz
enddocument
answered 1 hour ago
David Carlisle
474k3811031837
474k3811031837
Your knowledge ofexpl3
is astonishing!
â egreg
59 mins ago
@egreg Buono come il mio italiano
â David Carlisle
57 mins ago
Exactly so. :-)
â egreg
40 mins ago
add a comment |Â
Your knowledge ofexpl3
is astonishing!
â egreg
59 mins ago
@egreg Buono come il mio italiano
â David Carlisle
57 mins ago
Exactly so. :-)
â egreg
40 mins ago
Your knowledge of
expl3
is astonishing!â egreg
59 mins ago
Your knowledge of
expl3
is astonishing!â egreg
59 mins ago
@egreg Buono come il mio italiano
â David Carlisle
57 mins ago
@egreg Buono come il mio italiano
â David Carlisle
57 mins ago
Exactly so. :-)
â egreg
40 mins ago
Exactly so. :-)
â egreg
40 mins ago
add a comment |Â
Blincer is a new contributor. Be nice, and check out our Code of Conduct.
Blincer is a new contributor. Be nice, and check out our Code of Conduct.
Blincer is a new contributor. Be nice, and check out our Code of Conduct.
Blincer 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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f458191%2fconvert-all-counters-to-base-6%23new-answer', 'question_page');
);
Post as a guest
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
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
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
What would base 6 Roman be? It doesn't make sense.
â egreg
1 hour ago
You are right, it is just the same.
â Blincer
41 mins ago