{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

0
votes
0answers
25 views

My pages are not the same size on the PDF for my Senior Econ paper

I don't know if a basic working example would help, as I would not be surprised if packages are conflicting or I have a typo or syntax mistake in the 10 page document. And I've no doubt made it much ...
1
vote
0answers
32 views

Merging cells of adjacent Rows

Is it possible to merge rows like we can merge columns in Latex. I want a table like following.
1
vote
0answers
26 views

line breaks and word wraps for unpredictable character strings

I am writing python to parse and process lots n lots of files to build a final report of results from information in the files. I am using python to write the latex file, then converting the latex ...
4
votes
2answers
198 views

Is there a way to set colors of hyperref links and urls differently in headings / sections than in the body?

I know hypersetup from hyperref needs to be added before \begin{document} but after \usepackage{hyperref} and \usepackage{bookmark}. For example, you can inject it like the following to ensure this: ...
7
votes
2answers
92 views

Fixing overfull \hbox with mdframed containing an equation

When creating a boxed environment with mdframed, I ran into an issue with a line with an equation, that also happens to be the first line of a definition. Is there a way to fix the problem ...
2
votes
1answer
40 views

Cannot include courier into latex beamer listings

I have the following set up for my listings: \documentclass[russian,pdf]{beamer} \mode<presentation>{} \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \...
4
votes
2answers
106 views

How do I change my Table of Contents to look like this?

The deadline for my final senior design report is a few weeks away and I'm trying to migrate away from Word (which I used to finish my previous reports) to Latex. I have most of the formatting done, ...
1
vote
1answer
29 views

listings - How to format words of a external code file under a condition

I'm using listings to put a external code file in my document. I'm trying to customize its appearance to identify when the first character of a word is a digit and then change the color of this ...
0
votes
0answers
46 views

Formatting a PDF page

I'm trying to add a pdf page to an appendix and I'm having some trouble. I'd like to shrink the pdf page and place it below the appendix header, but I'm ending up with extra pages. Here's the two ...
1
vote
1answer
113 views

ACM SIG Proceedings: 6 authors total- 3 shared affiliation, also 2 shared affiliation

On the website for the ACM SIG Proceedings Template, there is an example where three authors all share the same affiliation (See number 17). However, my situation is a bit different, I am part of a ...
1
vote
0answers
39 views

What is a better way to link questions and answers on a problem sheet?

I write many problem sheets. The basic structure is thus: \section{Questions} \begin{enumerate} \item Question 1 \item Question 2 \item Question 3 \end{enumerate} \...
2
votes
3answers
54 views

Abstract with custom width

I am writing a report in which the page margins have been specified as \usepackage[left=3cm,right=3cm,top=4cm,bottom=3cm]{geometry}. But for one particular section (namely the Abstract), I want the ...
2
votes
1answer
49 views

Revisiting: “Adding an [AuthorYear] block at the beginning of bibliography entries”

I am trying to achieve citations and a bibliography, that look like this: There’s a sentence, where a book of SCOTT (1991) is quoted. Then some text with STRATTON et al. 1981 in it. ...
1
vote
0answers
27 views

LaTeX: Larger spacing in equations by default

I know that I can add spacings in equations using \,, \: and \;. However, by default, there is no spacing between two factors. Do I have to set every spacing manually using the above commands, or is ...
2
votes
1answer
46 views

How to hide chapter numbers in TOC with Memoir while keeping numbers at the start of each chapter

I am using memoir and trying to hide chapter numbering in the table of contents ONLY. I wish to keep it in the \mainmatter right now I am using \chapter[Chapter 1]{} to keep the "Chapter 1" text ...
2
votes
1answer
26 views

Formatting File Names re' \addchap input

I have a list of \addchap commands, each of which calls a file that is named as e.g. C001 My File.tex. The title contains capitalised words and a single space separating them. When the Main File.tex ...
1
vote
3answers
59 views

Can someone help me out with odd spacing in a multicolumn multirow table using siunitx?

I wanted to put my data in a multi column and multi row table, whilst aligning the entries by decimal point. For that I am using the package siunitx. There problem lies within the formatting of the ...
1
vote
1answer
27 views

Wrong column span with multicolumn

I have a four columns array or tabular. In the first row the second cell should span two columns, while in the second row both the first and the second cells should span two columns. The result is ...
0
votes
1answer
28 views

Format Equation: Add information left of the equation number

I want to write an equation and put some additional information in the equation but left of the equation number, thus \tag{} does not work. Furthermore, I would like to have the description flushed ...
1
vote
0answers
23 views

How do I print multiple authors correctly using BibTeX bibliography?

So I've been looking for an answer to my question on here for quite some time now, but nobody seems to be having the same problem as me: I'm using BibTeX and my makefile does latex latex bibtex latex ...
2
votes
2answers
46 views

Minipage reset indent. How can i set again to standard?

I have the following code. \documentclass[a4paper, titlepage, 11pt]{article} \begin{document} \section{Introduzione all'astrofisica} \begin{minipage}{12cm} In astrofisica, differentemente ...
5
votes
1answer
50 views

How do I strike through the first text on a line using the cancel module?

I'm new to latex so please be gentle. I installed cancel using this command: tlmgr install cancel Then I created a test file called test.tex with the following content: \documentclass[12pt]{...
2
votes
1answer
39 views

Place two flow charts side by side

I've read some of the other posts regarding placing figs side by side and I don't think this is duplicate because flow charts are not figures. Essentially I said my goal in the title, I want to place ...
1
vote
0answers
71 views

How to change the header in memoir

How can I do the following in page headers in memoir (without changing anything else): remove "Chapter" (and the chapter number) from page titles. (So only chapter title remains). Make the title and ...
2
votes
2answers
65 views

Script to embrace Greek passages

I'm working on a document that has many short Greek passages in it, as well as single words and expressions. It is impractical to embrace all of those with \gr{...} (defined with \...
2
votes
1answer
96 views

How to change row height within xtable environment?

I would like to change row height such that all rows except the header row will have fix height x and the header row will have eight y. I would like to do this within xtable environment because I ...
3
votes
2answers
50 views

Section headings in a separate column

I'm interested in achieving a two-column layout like the following, where the columns are flush with the left and right margins of the page: | section heading | lorem ipsum lorem ipsum lorem ipsum ...
12
votes
3answers
1k views

How to write bold, italic and sans-serif at the same time?

My title is bold and sans-serif right now but two words in the title have to be italic in addition (scientific name of bacterium). Currently I'm using \selectfont to make the whole thing sans serif ...
1
vote
1answer
64 views

How to stop LaTeX stretching my footnote

I've ran into a problem I can't seem to fix. So I've been working on a document, everything is as it's supposed to be, apart from one small detail. I referenced certain parts of my text with \...
4
votes
1answer
73 views

Formatting \addchap

My apologies in advance for such a banal question. I am using \addchap in a document and, would like to centre the chapter heading it creates. Could someone help me out with this please? A MWE: \...
1
vote
0answers
20 views

Turning entire page by 90° degrees [duplicate]

what is there a way to turn the page by 90 degrees? I know there is a package called lscape, but that only rotates the content of the page, instead of the entire paper. Basically, I imagine it like ...
2
votes
2answers
61 views

Help with algorithm2e formatting

recentely I've got into a bit more advanced LaTeX formatting, i.e algorithms. My package of choice is the algorithm2e package, but I'm having some difficulities operating it. So I've wanted to create ...
0
votes
0answers
71 views

How can I replicate this page using LaTeX?

I'm new to LaTeX. I'm preparing a grammar book, and I like how the book "A Practical English Grammar" was designed, simple and easy to use. I've tried using section, subsection, list... but I couldn't ...
0
votes
0answers
55 views

Latex: Geometry and fncychap packages create an ugly header - How do I correct that?

I am trying to use the geometry package for a oneside layout. However it apparently does something unpleasant with my headers. The bottom right part has a rectangle cut out. Without the binding offset,...
0
votes
1answer
20 views

\everypar{\looseness=-1} removes space before section title and only for section

I tried to use this (via): \everypar{\looseness=-1} However, I'm not exactly sure where to put it. If I put it somewhere before \begin{document}, it doesn't seem to have any effect. If I put it ...
3
votes
1answer
39 views

How to attach properly spaced subscripts to a rotated symbol?

I'd like to attach letters to my rotated symbol and then shrink it down. However, when I do this, the spacing is very much different than when I do the same exact thing to the original symbol. Is ...
1
vote
1answer
26 views

Prevent tearing of environment

I have a custom environment, called test. The text placed in the environment should be kept together, even when placed in a multicol environment, i.e. if written as the following code OtherText \...
0
votes
1answer
47 views

Table caption label format as “Table L-1.”

I want to make a new table caption as Table L-1. This is a table caption Currently, I am using the below code, but it has large margin between character and number as "Table L- 1". Could you ...
3
votes
1answer
81 views

Modify page behaviour in a cookbook .sty file to manage complex recipes

I'm trying to edit a .sty file for the typesetting of recipe books. It's a modification by Alexis Flesch of cookybooky: link to the full package (with output) The problem is that the code is ...
2
votes
1answer
28 views

Having titles stay with text

Hello I am writing a fictional story in latex and i'm having trouble with dialogue boxes. When a character says something their name and dialogue are put together in a borderless box. However i am ...
1
vote
0answers
64 views

Compact latex document given the current formatting?

I am trying to compile a latex document that is compact as possible because I am allowed to bring a one paged sheet into an exam I am writing (may sound kind of funny but I think it may be applicable ...
2
votes
1answer
36 views

How to delete a “chapter” in ToC which comes from \printpagenotes

So I have a document in memoir that uses both footnotes and endnotes. The endnotes are generated through the \makepagenote preamble, and \printpagenotes The problem is that in the ToC, and the ...
0
votes
0answers
17 views

How to prevent algorithmic from floating? [duplicate]

I have seen similar questions usually with the opposite problem and this is confusing me like no other. I would appreciate any help in getting this to work. I am using the algorithmic package to draw ...
3
votes
1answer
41 views

Can't insert linebreaks and ampersands in math mode using \newif

I write lecture notes and beamer slides using lots of macros containing math expressions. I'd like to be able to format conditional on whether or not I'm running beamer. So I've written ...
1
vote
0answers
15 views

number the equation without section or chapter [duplicate]

i want to number the equation without the number 2 in the image please \begin{equation}\label{N} (Nu)(x,y)=\mu(x,y)+\frac{1}{\Gamma(r_1)\cdot\Gamma(r_2)}\displaystyle{\int_{1}^{x}}\displaystyle{\...
3
votes
1answer
79 views

How do I change to dashed lines in manual 97.12?

This example is taken from section 97.12 of the pgf manual. It explains perfectly what I want to do, but I need the borders of the rectangle made of dashed lines. \begin{tikzpicture} \...
2
votes
2answers
66 views

How to recreate the dotted line from the ToC?

Is there a command to draw a dotted line like the one in the table of contents? I used \dotfill but this creates a row with a different spacing between the dots. The dotted lines on top were ...
0
votes
0answers
10 views

Formatting datas with datatool package

I have a data file data.txt like First string name|rank|degree| Smith| major|PhD John|Lt| Eugen|St|PhD Part of MWE \input{data.txt} \DTLsetseparator{|} \DTLloaddb{...
2
votes
1answer
62 views

List of listings name in header

I have a two-sided book document and want to format the header such that the chapter name is on the outer part. Everything works fine, but one thing annoys me. I have some source code listings (...
1
vote
0answers
16 views

How to put a number in a circle using grbbrige package

I am using grbbridge package for writing my bridge notes. According to package's documentation, you can denote the first card played by a player, by simply putting an "underling" mark in his/her card. ...