LaTeX gets confused about what page it isIndentation of footnotes depending on number of digits in footnote...

Using only 1s, make 29 with the minimum number of digits

Can we use the stored gravitational potential energy of a building to produce power?

How can my powered armor quickly replace its ceramic plates?

Does paint affect EMI of enclosure

Advice for a new journal editor

A title for a history book

Can I string the D&D Starter Set campaign into another module, keeping the same characters?

How would an AI self awareness kill switch work?

How should I handle players who ignore the session zero agreement?

How does Leonard in "Memento" remember reading and writing?

If I delete my router's history can my ISP still provide it to my parents?

Porting Linux to another platform requirements

Transpose a matrix and parenthesis

Why is working on the same position for more than 15 years not a red flag?

Does theoretical physics suggest that gravity is the exchange of gravitons or deformation/bending of spacetime?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Replacement expressions

Dilemma of explaining to interviewer that he is the reason for declining second interview

Why would space fleets be aligned?

Can you tell from a blurry photo if focus was too close or too far?

A catchphrase to describe an over-protective subordinate

Do authors have to be politically correct in article-writing?

How can I get my players to come to the game session after agreeing to a date?

Why did the villain in the first Men in Black movie care about Earth's Cockroaches?



LaTeX gets confused about what page it is


Indentation of footnotes depending on number of digits in footnote marks on the same page (paragraph issues)A few questions about head & foot & page numberPage number in the margin noteLatex page numbering by sectionAutomated Marginal Documentation of Page ChangesSuper-primitive 2-column table in LaTeXTrick LaTeX into displaying different page numbersproblem with the cite at the bottom of the pageForce marginnote to change pagePage numbering wrong - LaTeX not incrementingContinuing page number in LaTeX













0















The title should explain the problem.



documentclass[justified, symmetric]{tufte-book}
geometry{paperwidth = 8in, paperheight = 10.5in, right = 2.2in, marginparwidth = 1.5in}
usepackage{ifthen, lipsum, showframe}
begin{document}
% ------------------------------
textbf{thepage} marginnote{A margin note} par
lipsum[1-5]
vspace{0.5cm}

textbf{thepage} marginnote{raggedleft A margin note} par
lipsum[6-9]
vspace{0.6cm}

textbf{thepage} marginnote{ifthenelse{isodd{thepage}}{A margin note}{raggedleft A margin note}} par % <---- this note should be on the left side of the margin
lipsum[6-9]
% ------------------------------
end{document}


The wrong page numbering also results in a wrong display of the margin note:



enter image description here



To be fair, a simple clearpage before the third margin note solves the problem, but having to solve things manually is both impractical and annoying.









share

























  • It's a known issue that thepage is not a reliable way to get the current page number in most situations. See for example texfaq.org/FAQ-oddpage, texfaq.org/FAQ-wrongpn and tex.stackexchange.com/q/473903/35864 and

    – moewe
    5 mins ago













  • Oh, didn't know that. Is there some more reliable counter that gives the correct number?

    – noibe
    1 min ago











  • never use thepage in a document, latex is not confused, it is just not telling you what you expected it to tell you. Use pageref to get a page number.

    – David Carlisle
    1 min ago
















0















The title should explain the problem.



documentclass[justified, symmetric]{tufte-book}
geometry{paperwidth = 8in, paperheight = 10.5in, right = 2.2in, marginparwidth = 1.5in}
usepackage{ifthen, lipsum, showframe}
begin{document}
% ------------------------------
textbf{thepage} marginnote{A margin note} par
lipsum[1-5]
vspace{0.5cm}

textbf{thepage} marginnote{raggedleft A margin note} par
lipsum[6-9]
vspace{0.6cm}

textbf{thepage} marginnote{ifthenelse{isodd{thepage}}{A margin note}{raggedleft A margin note}} par % <---- this note should be on the left side of the margin
lipsum[6-9]
% ------------------------------
end{document}


The wrong page numbering also results in a wrong display of the margin note:



enter image description here



To be fair, a simple clearpage before the third margin note solves the problem, but having to solve things manually is both impractical and annoying.









share

























  • It's a known issue that thepage is not a reliable way to get the current page number in most situations. See for example texfaq.org/FAQ-oddpage, texfaq.org/FAQ-wrongpn and tex.stackexchange.com/q/473903/35864 and

    – moewe
    5 mins ago













  • Oh, didn't know that. Is there some more reliable counter that gives the correct number?

    – noibe
    1 min ago











  • never use thepage in a document, latex is not confused, it is just not telling you what you expected it to tell you. Use pageref to get a page number.

    – David Carlisle
    1 min ago














0












0








0








The title should explain the problem.



documentclass[justified, symmetric]{tufte-book}
geometry{paperwidth = 8in, paperheight = 10.5in, right = 2.2in, marginparwidth = 1.5in}
usepackage{ifthen, lipsum, showframe}
begin{document}
% ------------------------------
textbf{thepage} marginnote{A margin note} par
lipsum[1-5]
vspace{0.5cm}

textbf{thepage} marginnote{raggedleft A margin note} par
lipsum[6-9]
vspace{0.6cm}

textbf{thepage} marginnote{ifthenelse{isodd{thepage}}{A margin note}{raggedleft A margin note}} par % <---- this note should be on the left side of the margin
lipsum[6-9]
% ------------------------------
end{document}


The wrong page numbering also results in a wrong display of the margin note:



enter image description here



To be fair, a simple clearpage before the third margin note solves the problem, but having to solve things manually is both impractical and annoying.









share
















The title should explain the problem.



documentclass[justified, symmetric]{tufte-book}
geometry{paperwidth = 8in, paperheight = 10.5in, right = 2.2in, marginparwidth = 1.5in}
usepackage{ifthen, lipsum, showframe}
begin{document}
% ------------------------------
textbf{thepage} marginnote{A margin note} par
lipsum[1-5]
vspace{0.5cm}

textbf{thepage} marginnote{raggedleft A margin note} par
lipsum[6-9]
vspace{0.6cm}

textbf{thepage} marginnote{ifthenelse{isodd{thepage}}{A margin note}{raggedleft A margin note}} par % <---- this note should be on the left side of the margin
lipsum[6-9]
% ------------------------------
end{document}


The wrong page numbering also results in a wrong display of the margin note:



enter image description here



To be fair, a simple clearpage before the third margin note solves the problem, but having to solve things manually is both impractical and annoying.







page-numbering tufte marginnote





share














share












share



share








edited 1 min ago







noibe

















asked 8 mins ago









noibenoibe

38412




38412













  • It's a known issue that thepage is not a reliable way to get the current page number in most situations. See for example texfaq.org/FAQ-oddpage, texfaq.org/FAQ-wrongpn and tex.stackexchange.com/q/473903/35864 and

    – moewe
    5 mins ago













  • Oh, didn't know that. Is there some more reliable counter that gives the correct number?

    – noibe
    1 min ago











  • never use thepage in a document, latex is not confused, it is just not telling you what you expected it to tell you. Use pageref to get a page number.

    – David Carlisle
    1 min ago



















  • It's a known issue that thepage is not a reliable way to get the current page number in most situations. See for example texfaq.org/FAQ-oddpage, texfaq.org/FAQ-wrongpn and tex.stackexchange.com/q/473903/35864 and

    – moewe
    5 mins ago













  • Oh, didn't know that. Is there some more reliable counter that gives the correct number?

    – noibe
    1 min ago











  • never use thepage in a document, latex is not confused, it is just not telling you what you expected it to tell you. Use pageref to get a page number.

    – David Carlisle
    1 min ago

















It's a known issue that thepage is not a reliable way to get the current page number in most situations. See for example texfaq.org/FAQ-oddpage, texfaq.org/FAQ-wrongpn and tex.stackexchange.com/q/473903/35864 and

– moewe
5 mins ago







It's a known issue that thepage is not a reliable way to get the current page number in most situations. See for example texfaq.org/FAQ-oddpage, texfaq.org/FAQ-wrongpn and tex.stackexchange.com/q/473903/35864 and

– moewe
5 mins ago















Oh, didn't know that. Is there some more reliable counter that gives the correct number?

– noibe
1 min ago





Oh, didn't know that. Is there some more reliable counter that gives the correct number?

– noibe
1 min ago













never use thepage in a document, latex is not confused, it is just not telling you what you expected it to tell you. Use pageref to get a page number.

– David Carlisle
1 min ago





never use thepage in a document, latex is not confused, it is just not telling you what you expected it to tell you. Use pageref to get a page number.

– David Carlisle
1 min ago










0






active

oldest

votes











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477177%2flatex-gets-confused-about-what-page-it-is%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477177%2flatex-gets-confused-about-what-page-it-is%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

IEEEtran - How to include ORCID in TeX/PDF with PdfLatexIs there a standard way to include ORCID in TeX /...

Cicindela nigrior Przypisy | Menu nawigacyjneCicindela varians unicolorManual for the Identification of the...

Glossaries-extra: Adding glossaries package to “Clas­sicTh­e­sis” template by Dr. André Miede v. 4.6 ...