Tag Info

0

Use a chemistry package, for instance chemformula (or mhchem): \documentclass[12pt,twoside,a4paper]{report} \usepackage{lmodern} \usepackage{amssymb,amsmath,amsthm} \usepackage{chemformula} \begin{document} \section{Properties of \ch{Ti3SiC2}} \end{document} Below a picture showing what you'd get in the table of contents. Side notes: the pdftex option ...

2

I guess you are looking for the \boldmath macro. In a standard document \documentclass{article} \begin{document} $\mathrm{ZrB_2+SiC}$ vs. {\boldmath$\mathrm{ZrB_2+SiC}$} \end{document} A possibility that might work for you to avoid too much extra encoding is to add \boldmath to any invocation of \bfseries. This can be done via the internal macro \g@...

0

In themes with footers split in three parts, like Boadilla, you can use the following, instead of the other answers: \makeatletter \setbeamertemplate{footline}{ \leavevmode% \hbox{% \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}% \usebeamerfont{author in head/foot}\insertshortauthor \end{...

1

The following code shows the basic principle. You may have to modify the code if you're using a different document class. \documentclass{article} \usepackage{lipsum,fancyhdr} \pagestyle{fancy} \fancyhf{}% Clear header/footer \fancyfoot[L]{School of Civil Engineering, RGMCET, Nandyal}% Left footer \fancyfoot[R]{Page \thepage}% Right footer \renewcommand{\...

1

To force lower case: \lowercase{...} \documentclass[a4paper,11pt]{book} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \fancyfoot{} \fancyhead[L]{\textsl{\leftmark}} \fancyfoot[L]{\textsl{\rightmark}} \usepackage{lipsum} \begin{document} \chapter{Chapter name with capital text and E\lowercase{scherichia coli} } \lipsum[2-4] \section{Section name with ...

3

You can use \AtBeginDocument: \documentclass[12pt, twoside]{memoir} \usepackage[utf8]{inputenc} \usepackage[margin=1.5in]{geometry} \setlength{\parindent}{0pt} % space at start of new paragraph \setlength{\parskip}{0.14in} % space between paragraphs \usepackage{lipsum} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{fancyhdr} \...

0


1

\documentclass[12pt]{article} \usepackage{pdfpages, fancyhdr} \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \lfoot{\thepage} \cfoot{\rightmark} \begin{document} \includepdf[pages=-, pagecommand={\markright{my cool document}}]{example-image-a4-numbered} \includepdf[pages=-, pagecommand={\markright{my second cool document}}]{example-image-a4-...

0

Turns out that there is a simple fix. To turn off a specialized page style, use the command: \pagestyle{plain} Then, to turn on the custom page style, use the command: \pagestyle{custom} %% where *custom* is the name of the page style used in the rest of the document.

0

Dynamite, This doesn't work. It has do nothing with spacing.\renewcommand{\contentsname}{\vspace*{-4cm}Contents} EDIT: This is code with titlesec \usepackage{titlesec} \titleformat*{\section}{\Huge\bfseries\raggedright} \titleformat*{\subsection}{\Large\bfseries} \titleformat*{\subsubsection}{\large\bfseries} \titlespacing*{\section} {0pt}{...

0

Try the negative space before the title if the table of contents: \documentclass[12pt, % velikost zakladniho pisma a4paper, % papir A4 twoside, % jednostranny tisk (default) czech % originalni jazyk cz ]{report} % dokument tridy zprava % Nastaveni obsahu \usepackage[titles]{tocloft} \...

0

Maybe the following helps: \documentclass{scrbook} \usepackage{blindtext}% dummy text \begin{document} \blinddocument % \clearpage\pagestyle{plain} \chapter{Using plain style} \Blindtext[10] \clearpage\pagestyle{headings}% maybe you have to replace "headings" by the name of your page style % \blinddocument \end{document} or \documentclass{scrbook} \...

1

This might be a bit fragile, but seems to give the desired result: \documentclass{book} \usepackage{fancyhdr} \makeatletter \fancyfoot[c]{% \nameref{foo:\thechapter.\@arabic\c@section}% \space pp. \pageref{foo:\thechapter.\@arabic\c@section}\space--\space\pageref{bar:\thechapter.\@arabic\c@section}% } \makeatother \pagestyle{fancy} \usepackage{...

1

If you insist on locally changing the margin instead of making the table itself narrower, you might want to use the changepage package and its adjustwidth environment: \documentclass[a4paper,12pt]{scrbook} \usepackage[pass]{geometry} \usepackage{pdflscape} \usepackage[automark]{scrpage2} \pagestyle{scrheadings} \setheadsepline{1pt} \usepackage{lipsum} \...

1

From your MWE can be concluded, that your table is not so long that you need more pages for it, but it is wider than width of the landscape oriented page. If my conclusion is correct, than you can use the tabular* table environment with prescribed width equal to text height and use macro \extracolsep{\fill}} for determining column separation. Using it you ...

1

In the past I had problems with KOMA-Script and pdflscape. Therefore, with the answer of Jörg (the \newenvironment{rotatepage}) in this post Rotate single PDF page when viewing and the package hvfloat I found an "unconventional" way: \documentclass[a4paper,12pt]{scrbook} \usepackage[automark]{scrpage2} \pagestyle{scrheadings} \setheadsepline{1pt} \...

3

After some experimenting with the MWE I found the simple answer: use \markboth{leftHeader}{rightHeader} as follows: \documentclass{scrbook} \KOMAoptions{paper= 6.14in:9.21in, BCOR=8mm,twoside, headinclude=false, footinclude=false, DIV=13, fontsize=11pt, } \usepackage[german]{babel} \usepackage{parallel} \usepackage{lipsum} \...

3

Just as a starting point: you can use absolute page coordinate (see Positioning relative to page in TikZ) and overlays, together with a bit of coordinate labeling... \documentclass[]{report} \pagestyle{empty} \usepackage[a3paper, landscape]{geometry} \usepackage[RPvoltages]{circuitikz} \begin{document} \begin{tikzpicture}[overlay, remember picture] \...

0

The "random other page" is not a random page, but the first page of a chapter, which uses the plain page style. This page style can be changed like this: \documentclass[a4paper,12pt]{report} \usepackage[left=2cm,right=2cm,top=2cm,bottom=3cm]{geometry} \usepackage{titlesec} \usepackage{cite} \usepackage{subcaption} \usepackage{graphicx} \usepackage[utf8]{...

1

This answer: https://tex.stackexchange.com/a/31070/120014 clearly shows a workaround where a different command is defined and then input to \title{} or \author{} to avoid complexities associated with the true \author{} and \title{}, such as being cleared during \maketitle. So I simply define \firstauthor and input that to both \author and the footer: \...

2

With \fancyfoot you have access to the entire footer, so you can combine/align things any way you want. The \rlap \llap approach allows the left or right section to extend past the midpoint, and helps center the center section (if used). \documentclass{article} \usepackage[a6paper,footskip=30pt,showframe]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \...

1

3

With the titlesec package you can redefine any of your headings very precisely to provide the format/layout you like. Since that top rule is so close to the page number and since the page number is in the header despite being the start of a chapter, you might want to use the fancyhdr package and redefine the plain pagestyle to get the top rule and the page ...

5

First, you should use a book-like document class to use \chapter instead of \section as first level headings. Then you can customize the chapter style with the package tilesec in the standard book class or alternatively according the document class commands for this purpose. For example, using memoir you have already defined some chapter styles as "madsen"...

2

The first page of the index uses page style plain. You can modify it with \indexsetup: \documentclass{article} \usepackage{fancyhdr,imakeidx} \usepackage[index]{kantlipsum} \makeindex \indexsetup{firstpagestyle=fancy} \lhead{Lorem Ipsum} \rhead{Cicero} \pagestyle{fancy} \begin{document} \section{Lorem Ipsum} \kant[1-200] \printindex \end{document}

3

An answer to two of your questions. ... \setSingleSpace{1} % normal space between lines \SingleSpacing \chapter[How do ...]{How do I reduce chapter heading line space? How do I ...} \setSingleSpace{1.3} % more space between lines \SingleSpacing \setsecheadstyle{\large\scshape\raggedright} % change section head font \section{How to change this font?} \...

1

The table of contents is typeset as a starred chapter, the reason why the pagestyle is plain and not fancy. See documentation of fancyhdr how the page style can be redefined with \fancypagestyle{plain}{...}.

3

add manually with \markboth{PREFACE}{}: \documentclass[a4paper,twoside,12pt]{book} \usepackage[left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry} \usepackage{fancyhdr} \usepackage{titlesec} \titleformat{\chapter} [display] {\center\bfseries} {\large\MakeUppercase{\chaptertitlename} \thechapter}{0cm}{\large} \titlespacing{\chapter}{0cm}{-1cm}{0.5cm} %\...

2

0

1st Approach I think that I did find a solution based on Difficult with fancyhdr and table of contents (different page styles for \frontmatter and \mainmatter). \documentclass[10pt,openany]{book} \usepackage{fancyhdr} \usepackage{etoolbox} \usepackage{blindtext} \fancypagestyle{style_A}{ \fancyhf{} \fancyhead[C]{Style A (thin line) -- TOC} \...

1

If \KOMAoptions{enlargefirstpage} should have an effect, you have to add option firstfoot=false. See the documentation for more information. If you use firstfoot=false (without option enlargefirstpage!) you get the desired result for the text body on the first page. For the footer you can load package scrlayer, define a layer and a page style which can be ...

0