{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
1answer
22 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
48 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
38 views

Indentation gone missing within document

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
21 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
42 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
88 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
34 views

Writing equations in columns? [on hold]

How can I write my code so it compiles down the left side, and then the right? I specifically want to do this on Math stack exchange, so MATHJAX. If you go here, and click recent activity, you will ...
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
30 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
135 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 ...
0
votes
0answers
51 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
150 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
43 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
117 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
81 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
58 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
20 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
40 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
44 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
318 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
34 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
30 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
92 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
127 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
23 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
33 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
19 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). ...
1
vote
1answer
29 views

Justifying the output of toLatex function of utils R package

Using utils::toLatex(sessionInfo()) in .Rnw we can get R Session Info to put in LaTeX. I would highly appreciate if someone guide me to fully justify the output of utils::toLatex(sessionInfo()). ...
4
votes
2answers
62 views

bclogo page breaks

I am using the Bclogo package http://www.ctan.org/pkg/bclogo. I have created environments for lemmas and proofs with it. The proof was too big to fit on the bottom of the page, so it just inserted a ...
3
votes
1answer
48 views

Line with a \hbox is overflowing right margin, why?

Let's say I have a hbox inside a paragraph like this: Do you like me? \hfill\hbox{\quad$\bigcirc$ Yes\quad$\bigcirc$ No}. If the text of the question is longer than this "Do you like me?", the line ...
1
vote
0answers
24 views

EulerVm and Maketitle

I am unable to use the eulervm package with maketitle. If I comment out the \usepackage{eulervm} the LaTeX renders fine, but as soon as I include it, I get the following ! Math formula deleted: ...
4
votes
2answers
99 views

Is there a semantic way to typeset table headers in LaTeX?

Usually, when I add tables I use \usepackage{booktabs} and code that looks like this: \begin{table}[ht] \centering \begin{tabular}{l|rrr} \toprule Country / Property & Population ...
2
votes
0answers
53 views

Generating LaTeX reports from XML *without* external scripts

First of all, I apologize if this is pretty similiar in nature to my previous question: Reading and (custom) formatting a CSV (not \csvautotabular) I thought it would be better to separate the two ...
4
votes
1answer
34 views

Make defined words appear standalone in left margin

I've seen this in textbooks before, so I imagine it's possible. What I would like is for a defined word to show up in the left margin for easy identification when scrolling through a document. For ...
4
votes
1answer
60 views

How to draw a scatter chart with multiple columns of metadata+labels?

I want to print a scatter chart and color the nodes according to a column in the data file. The problem is, point meta already is used for other data. This is the class of the point, either ONE or ...
4
votes
2answers
95 views

Change the color of cite number in bibliography

Does anyone know know how to change the color of the cite number in the bibliography? \documentclass{book} \usepackage[square, numbers, comma, sort&compress]{natbib} % Use the "Natbib" ...
6
votes
1answer
53 views

Formatting for glossaries

I am new so please go easy :-). I am using the \glossaries package to make my acronym page. I have defined only acronyms. What I want is to make the description of the acronym in a separate column ...
0
votes
0answers
34 views

Customization of List of Tables and List of Figures title

I'm working on my thesis, and need a list of figures and list of tables. However, in the book document class I'm using the default format is not a format I can use. I did find a fix for the Table of ...
0
votes
1answer
22 views

thmtools declaration for theorem and proof.

I'm using thmtools to specify the theorem and proof environments. The problem that arises is that I want my theorems stated in italics and my proofs in non-italic. The following is my initial setup: ...
3
votes
2answers
60 views

Can I attach a \footnote to a \sidepar

Sorry for the sloppy question and editing: here my connection comes and goes in the afternoon. In a few word I need the footnote attached to a sidepar to be treated together with all the other ...
2
votes
0answers
29 views

Vertical space around table

I'm using tabu to create a table. I wish this to be center-displayed, so I am using it as follows: Body of text preceding table. \begin{center} \begin{tabu}{llX} text & text & text ...
2
votes
1answer
48 views

colorful background of the chapters in ToC without ''tocloft'' package

I would like to create a table of contents where the chapters appear with a colorful background just like attached Image, and i hope to do this without tocloft ( without packages or with titletoc ) ...
1
vote
1answer
80 views

Need Help in formatting my Book - Chapter headings - Headers

I am a Chemical Engineering graduate and I am helping my mentor in typesetting his book. He has given me the text and equations in MS Word and I have to convert the same in LaTeX. I used Adobe ...
1
vote
1answer
49 views

Need help formatting moderncv \cventry

I am working on a CV in latex and for the most part I have achieved what I am trying to accomplish but for the life of me I cant figure out how to correctly format what I am going after. Specifically, ...
3
votes
1answer
74 views

LaTeX tufte-book how to wrap around chapter, section, subsection heading

I am writing a book using the package tufte-book. Some of my chapter titles and section titles are too long. But I don't know how to get it to wrap around instead of going into the margins and off the ...
0
votes
0answers
19 views

Summing a list and specifying number of elements on list

How would I create something like either of the following on LaTeX?