fancyhdr in Latex - onesided book [closed] - latex

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Here is my problem:
Im writing my thesis using the book class. I want my thesis to be onesided (left and right margins of same size), but I would also like to use the fancyhdr package to give me chapter names in the pagehead of even pages and section names in the pagehead of odd pages.
Trying to do so together with the "oneside" option gives me a warning when compiling saying that the [E] option is useless when the book is "onesided".
Example code:
\documentclass[11pt,a4paper, oneside]{book}
...
\fancyhf{}
\pagestyle{fancy}
\headheight 20pt
\fancyhead[LE]{\rightmark}
Any good ideas would be much appreciated!

You could use two-sided pages and then set the margins manually, e.g. with the geometry package. More capable alternatives to the standard classes like scrbook or memoir support this out of the box, and also don't need the fancyhdr package.

Related

Undefined Control Sequence \TEXTBF [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed last year.
Improve this question
I am getting the error shown in the attached photo, Please guide me to fix it. I am using overleaf site to write the paper.
TeX is case sensitive. Use
\textbf{...}
However to follow latex's principle to separate formatting and content, it would be better to not manually mess with the fonts like this. Instead your use-case seems to be better suited for a sectioning command like \subsection{...}, or whatever level you like.

Scripts for LaTeX [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I would like to know what scripts for LaTeX mean and what they exactly do.
For example, I saw a LaTeX document which said:
"Typesetting using KOMA-Script and LaTeX 2e"
What are these scripts exactly used for and where can I find help using these scripts?
“KOMA-Script” is the name of a collection of popular document classes for LaTeX which replace the standard document classes (article, report, book etc.). It’s got nothing to do with “scripts” in the conventional sense in programming.
For further information, type texdoc koma into a terminal window.

What is the best way to format LaTeX source for the Kindle? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to format my book for a Kindle 3. I'm writing the book using LaTeX. I am ok with transferring the file in PDF format but I need it formatted to be small.
I have tried:
\documentclass[12pt,b7paper]{book}
\usepackage[top=0.5cm, bottom=0.5cm, left=0.5cm, right=0.5cm]{geometry}
But this is too small. I have also tried something like:
\usepackage[paperwidth=9cm, paperheight=12cm, top=1cm, left=1cm, right=1cm, bottom=1.5cm, includefoot]{geometry}
But that doesn't work well either. Has anyone found a good way to format a LaTeX PDF for the Kindle? (Not the big DX version.)
This works well. I found it important to remove paper size from the dvips command. Forgetting to adjust that setting through me off for a while.
\documentclass[12pt]{book}
\usepackage[paperwidth=9cm, paperheight=12cm, top=0.5cm, bottom=0.5cm, left=0.0cm, right=0.5cm]{geometry}
\special{papersize=9cm,12cm}
Why don't you convert the LaTeX to HTML and create a Mobipocket document from that? That way, the Kindle will be able to reflow the document, which it cannot do if you load it in PDF form.
This may be much more than you need, but it's worth pointing out that there's a much more comprehensive answer over on tex.stackexchange

LaTex, trying to use \ref{} or \autoref{} to a label in an appendix shows up empty in pdf [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Trying to use \ref{} or \autoref{} to a label in an appendix, but it just shows up as empty with \ref{} and 'Section' with no number/letter for \autoref{}.
I'm not sure if I'm misreading examples out there, or if I have a package conflict...
% MainFile.tex
Details of obfuscation of evil are provided in \autoref{app:One}.
\appendix
\section{Obfuscating Evil via Optimized Confusion Matrix} \label{app:One}
Recall that the ....
Shows up in pdflatex output as "are provided in Section ."
Try recompiling the document. If the label is after the reference, you need to compile twice to get it to work.
If that doesn't work, this page might help. In short, \usepackage{appendix} and possibly \begin{appendix} etc. might fix it. If it's just a matter of the reference showing up, I can't see how this would help actually, but it might. Without a minimum working example it's hard to give much more advice.
You might also have more luck asking your question here.

Learn how to create LaTeX styles? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
How can I learn how to create LaTeX styles?
The normal way when creating a LaTeX document is to start with something like.
\documentclass[a4paper]{report}
\documentclass[a4paper]{article}
\documentclass[a4paper]{letter}
And that seems to call a .cls (and a .sty) file like letter.cls,
that is controlling the actual layout of the document.
Is there a good way to learn how to create this type of "latex style files"?
Has someone created a howto, step-by-step or simply a good manual on the topic?
Thanks
Johan
update:
I guess that tex.stackexchange.com is the answer on how to continue learning LaTeX.
With questions like this: https://tex.stackexchange.com/questions/528/style-class-tutorials
There are two good papers in the PracTeX journal:
Minutes in Less Than Hours: Using LaTeX Resources by Jim Hefferon,
Rolling your own Document Class by Peter Flynn.
A very useful resource is LATEX2e for class and package writers.
This question is also discussed here: Style/class tutorials. You are kindly invited to use the links there and perhaps join the discussion there if you like.
This isn't a direct answer to your question, but may give you a better return on the time invested, depending on how you see your future use of LaTeX.
Memoir for documents, Beamer for presentations.
"All the LaTeX styles you'll ever
need!"

Resources