{formatting} is for general questions about formatting document elements. Use this tag in addition to other tags specifying what should be formatted. For questions about font attributes (e.g., {bold}, {italic}, {small-caps}, {sans-serif}, {typewriter}), use the appropriate tag instead.

learn more… | top users | synonyms

2
votes
0answers
26 views

Showing the chapters instead of the pages when using biblatex and backref=true

I have used etoolbox to number the pages within a chapter and I've changed \thepage to print both the chapter number and the page number: \pretocmd{\@chapter}{\setcounter{page}{1}}{}{} ...
2
votes
0answers
16 views

texmaker Quick Build Orientation

I just installed texmaker on a new iMac. For some unknown reason, when I use Quick Build, the document appears in a landscape orientation and the fonts are stretched out wider than normal. The output ...
4
votes
1answer
110 views

How to customize the arrows of this flowchart?

\begin{document} \pagestyle{empty} % Define block styles \tikzstyle{decision} = [diamond, draw, fill=white!20, text width=5.5em, text badly centered, node distance=5cm, inner sep=0pt] ...
0
votes
1answer
47 views

How can I write at the end of line in a blank line of a letter?

How can I write at the end of line in LaTeX? Suppose I want to say "thank you" in a letter and then put the name of the author right below it. Thanks for any insight.
3
votes
1answer
31 views

eledmac: formatting endnotes

I try to format endnotes with eledmac in a way that I can use them to correct printing errors of the original text, but unfortunately i don't understand how to change the fonts. Say, for example, I ...
3
votes
1answer
87 views

How do you code Mr./Dr./Mrs. in LaTeX? [duplicate]

Bit of a newbie question. I have read somewhere (can't seem to find it now) that if you wish to write Mr. John Doe or Dr. Jane Doe that LaTeX with treat the . as a full stop and add an extra space. ...
7
votes
2answers
61 views

Change author font for specific cite command

Consider the following MWE \documentclass{article} \usepackage[style=authoryear-comp,backend=biber]{biblatex} \addbibresource{biblatex-examples.bib} \AtBeginDocument{% ...
1
vote
1answer
40 views

Centering sections without centering subsections

This question is about how to center all the sections (including chapters) without centering subsections. I have browsed all the related questions asked here but I found no one to which my question ...
0
votes
1answer
40 views

Using Easylist and leaving one entry bullet blank

So I have a checklist using the checkboxes. I want to make occasional ones not have the check box because there are several indented checkboxes I want to choose from. I see Choosing the bullet of a ...
3
votes
1answer
71 views

Libertine Strange Emphasized Capital J Letter

I'm using libertine package. I see the emphasized capital J (no. 1) is a bit strange to me, compared to another fonts. Is it really the way it is? How to get it fixed? Thanks. \documentclass{book} ...
1
vote
2answers
36 views

How can I make text appear correctly in an equation? [duplicate]

The basic outline of the equation below is correct but how can I make the text appear correctly right now it appears scrunched up? \documentclass{report} \begin{document} \begin{align*} \left. k_S ...
4
votes
2answers
46 views

How can I show codeboxes?

I am in the process of writing a simple manual. In it, I explain how to set up the files and programs necessary to run a pipeline I have written. I would like to include command line commands in that ...
2
votes
3answers
69 views
+50

Remove last dot in title numbering

My current document is processed like this: 1. Some chapter 1.1. Some section 1.1.1. Some subsection Appendix A. Some appendix What I want to have: 1 Some chapter 1.1 Some section 1.1.1 Some ...
5
votes
2answers
71 views

Decimal point alignment in LaTeX tabular environment but in math mode

The dcolumn package works well for plain numbers but not if these are in math mode eg \begin{tabular}{ld{1}l} \hline \textbf{Species} & \multicolumn{1}{c}{\textbf{Calculated}} & ...
2
votes
0answers
44 views

Fonts changes between computers, unreadable

I'm using TexMaker on OS X, compiling with Xetex, and I'm having some fonts issues. Depending on the computer I look at the pdf file I get the either the correct fonts or not, see in the image below: ...
0
votes
0answers
25 views

How to get a new line in rtf2latex2e?

I am using rt2latex2e to convert .rtf files to LaTeX in Windows 8.1. It is working fine. But I am not able to find the line break. E.g.: converted as: 21 women's 1 day work = ...
4
votes
2answers
85 views

Formatting a longtable

I have a longtable, but I'm unsure how to do two things, listed below. NB: The MWE given at the bottom of this post is not an exact representation of how the table appears in my document. This is ...
0
votes
0answers
25 views

Customising references with \DeclareFieldFormat

My university calls for a Harvard style and Biblatex style authoryear works well. For online sources it requires this I have managed to change the standard URL: to '[Online]. Available at' with ...
2
votes
3answers
65 views

How to create a operation manual like format with sidebars

I wonder if there is an easy way to achieve formatting like this document. Some notable features of such a format There is a left sidebar to allow users to take notes The sidebar contains section ...
0
votes
1answer
31 views

Create Document with empty figures on purpose

In order to have my document checked for spelling errors, grammar mistakes and general consistency, I want to print it with empty dummy figures as placeholders of exactly the same size. The general ...
2
votes
1answer
37 views

Koma-script and glossaries package

This has driven me crazy for some time now and I finally found out the origin of my problem. Now I would like to solve it. In my thesis document, I add acronyms using the glossaries package. This ...
4
votes
1answer
50 views

songs: formatting songs with two voices

I'm currently rewriting the songbook of our scout group with LaTeX and the songs package. But I have problems with a couple of songs which are sing in two voices with overlapping parts. For example ...
0
votes
0answers
41 views

Indentation gone missing within document [closed]

I don't know how to do a "minimal" sample is useful here, because it would just work... I have a master tex in which I include multiple other tex files with my separate chapters in them. The Problem ...
0
votes
1answer
26 views

How add white space under chapter heading in memoir class using pedersen chapter style?

I added a MWE at the bottom of the post. I want a little more white space under the title heading, because it feels a bit cramped the way it is now. Can someone help me with that? ...
1
vote
1answer
46 views

Styling ToC dot leader using emdash and other formatting requirements

I'm using memoir class and want to create ToC that: Using em dash (instead of default dot leaders) between TOC item and page number. This style should apply to both part and chapter name. Only the ...
4
votes
2answers
90 views

Proper format for this equation

I have this equation that is slightly too long and want to split it somehow nicely, unfortunately I am incapable of doing this right. Could anybody help me with this? \begin{align} ...
0
votes
0answers
39 views

How to number with indent? [duplicate]

I have a list of exercises that I want to answer using LaTeX. Is it possible to format it like this? Is it possible to jump right from a) to c) in LaTeX? I have looked at the exercise-package, ...
3
votes
1answer
32 views

how do I multiply a command argument with a constant?

I'm writing a novel and I defined a set of commands for starting a new chapter: %A \newcommand{\AKapitel}[1]{\lettrine[lines=3, lraise=-0.2,findent=-22pt, nindent=14pt, ...
2
votes
2answers
52 views

Underbrace below tabular and columns of equal width

I would like to get a table 3×8 with columns of equal width, below it two undebrace ( column 3 and columns 4-5) over text "signs rules" and "we must study the sign of g" \documentclass{article} ...
4
votes
2answers
141 views

How can I automatically replace subscripts and highlight GoTo labels?

I have to show a lot of autogenerated code throughout my document. The generated code represents loops with explicit block labels and gotos. The following code applies function f to each element of ...
1
vote
0answers
76 views

Essay Formatting

I have an essay I need to write and I would like to use MacTeX, however it has been very challenging to get it formatted to all of my prof.'s requirements. If someone could help that would be SO ...
2
votes
1answer
155 views

Zero space between characters, decibel sign

My MWE, \documentclass[a4paper,11pt]{scrbook} \usepackage[T1]{fontenc} \begin{document} dB \end{document} output, But I want zero (maybe negative) space between d and B. That is I didn't find ...
0
votes
0answers
26 views

strange page at end of multiple chapter document [duplicate]

The last page of my thesis looks like this. Has anyone ever seen anything like this? When I click on it in texshop, it brings me to the tex.aux file and I see stuff like this: ...
6
votes
1answer
46 views

Placing the Head of a Curved Arrow of a Reaction Mechanism Slightly Above the Plus Sign

My Code is: \documentclass[12pt,letterpaper]{report} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage{chemfig} \usepackage{tikz} \usetikzlibrary{arrows.meta} \tikzset{ ...
2
votes
3answers
129 views

Templates for math student [closed]

I am going to start my math major, and I learned the basics of latex because I would like to use it to make my documents and take notes. But now I would like to find some templates to use for: ...
2
votes
2answers
85 views

Comic book or graphic novel style panels in LaTeX

I have heard that LaTeX is not necessarily suited to make panels. That even two-column is difficult to get the text to align. I would like to draw stuff like this: --------------------------- ...
3
votes
1answer
64 views

Which chemistry package can be used for Lewis formulae and electron movement arrows?

I wanted to reproduced this set of steps for my thesis but I have no idea what package can do this. I am a newbie to latex I only started a few weeks ago.
0
votes
0answers
21 views

Apostrophes appearing in lstlisting sections as well as picture captions

I have a defined style to write pseudocode with the lstlisting package, however it is putting apostrophes around any spaces that occur in the code. My defined style: \lstset{ language=Java, ...
1
vote
1answer
42 views

Section Titles, not the crossing next page

It's my code, \documentclass[a4paper,twoside,openright,11pt]{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[svgnames]{xcolor} \usepackage{lipsum} ...
2
votes
1answer
52 views

Vertical color background of section title

Good night. It's my problem about gradient colored section title, with vertical length. It's codes are, \documentclass{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
8
votes
7answers
321 views

Vertical aligning for simple numbers

I need to typset a series of fractions with no line inside some paragraphs of text (they were used as proportional symbols). It is very simple, actually: $^2_1$, $^4_2$,$^8_4$ But when it comes to ...
2
votes
1answer
31 views

Period Padding with Price [duplicate]

I'm looking for a way to have automated period padding for some items I'm discussing in my proposal. For example: Pneumatic Drill.......................$450.12 Drill ...
1
vote
2answers
36 views

APA citation problem

my code is: \documentclass[12pt,letterpaper]{report} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage[margin=1in]{geometry} \usepackage{titlesec} \usepackage[autostyle]{csquotes} ...
1
vote
1answer
35 views

Tabs Affecting Compilation of SWeave Code

The following SWeave code, compiled using WinEdt 8.1 with the Sweave plugin produces a nice R image: \begin{figure} <<fig=TRUE, echo=FALSE>>= set.seed(123) x <- 1:10 y <- rnorm(10) ...
3
votes
2answers
96 views

Labeling Species of a Chemical Reaction

My code is: \documentclass[12pt,letterpaper]{report} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage[margin=1in]{geometry} \usepackage{titlesec} \setcounter{secnumdepth}{5} ...
7
votes
1answer
131 views

How to use chemfig for chemical reaction with skeletal forms

My code is: \documentclass[12pt,letterpaper]{report} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage[margin=1in]{geometry} \usepackage{titlesec} \setcounter{secnumdepth}{5} ...
0
votes
0answers
24 views

Infinite canvas [duplicate]

It seems that all LaTeX formatting assumes we will ultimately print the document but if the goal is to publish online - under some circumstances, we might desire to have all the document in one ...
0
votes
0answers
36 views

Defining step function [duplicate]

How to define a step function using Latex ? For example, The Dirichlet function: f(x)=1 if $x\in \mathbb{Q}$ and 0 if {x\in \mathbb{R}\\mathbb{Q}}.
0
votes
0answers
22 views

How to Split Document in TexMaker [duplicate]

My code is: \documentclass[12pt,letterpaper]{report} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage[margin=1in]{geometry} \usepackage{titlesec} \titleformat{\chapter}[display] ...
1
vote
0answers
22 views

Create randomized page design in a songbook

I want to create a songbook, using either the package songbook or the package songs, because every song must have guitar tabs (and I want to have the possibility of adding notes to the songs later). ...