{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
42 views

Number formatting, addtocounter and calc package

I have been having troubles with the following issue: I am making an invoice template in LaTeX. I use \addtocounter to calculate values like subtotal, tax and total. This works fine, until the value ...
1
vote
0answers
25 views

how can i change header and footer different for even and odd pages and different for front page [closed]

how can we change header and footer different for first page and after that from second page we need to apply odd and even pages header and footer. like on front page we want image and name of our ...
3
votes
1answer
60 views

How to format Table of Contents?

I'm relatively new to LaTeX — I haven't really gotten into formatting things too deeply until around a month ago although I've used it for longer — so I don't know how I could format a couple of ...
4
votes
2answers
184 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: ...
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
26 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
23 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 ...
3
votes
2answers
204 views

Problem using \alert{} in Beamer title with metropolis theme

I'm trying to emphasize some words in the title of a beamer document. Ex : \documentclass{beamer} \usepackage[utf8]{inputenc} \usetheme{Warsaw}%\usetheme{m}%-->problem \usepackage{tikz} ...
1
vote
1answer
24 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 ...
4
votes
2answers
94 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, ...
2
votes
1answer
30 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} ...
0
votes
0answers
45 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
50 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 ...
2
votes
3answers
43 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
44 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
38 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} ...
1
vote
1answer
27 views

Intext citation in IEEE format [closed]

I am trying to change the citations of my bibliography so that it uses IEEE format for the \cite command. Currently, \cite{...} the generates output like (1) whereas I want it to appear as [1]. ...
2
votes
1answer
40 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 ...
0
votes
1answer
87 views

Adding a text to LaTeX that it shouldn't read [closed]

Hi guys I have to put a tiny code in my appendix for a dissertation that I am doing which looks like this -- -- ----------------------------------------------------------------------------- -- ...
6
votes
1answer
169 views

Newline after Section number / before Section title in KOMA Script

i have to adhere to a style guide which dictates newline after a chapter/section/etc number, i.e. instead of the usual 1.2 Heading its supposed to be 1.2 Heading This has to work for both the ...
1
vote
0answers
24 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 ...
1
vote
3answers
50 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
22 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
0answers
18 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
21 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
1answer
70 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 ...
2
votes
1answer
37 views

How to put different parts of text to a other page

I would like to take out some part of my document and put them all together at the end of my document without doing it manually. Is there a command to do that? example : blabla bla// Exercice1// bla ...
5
votes
1answer
39 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: ...
2
votes
1answer
33 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
67 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 ...
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 ...
3
votes
2answers
46 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 ...
0
votes
1answer
100 views

using macro to simplify the code

I got my code working with net and SO help. But now I want to simplify it using macro. I dont know macro, but people says it makes code more simplified. can some one guide me to have macro for this. ...
1
vote
1answer
55 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
58 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
18 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 ...
0
votes
1answer
184 views

Formatting typographer's quote marks

This question has been asked before. But, I have not found a solution. I have a problem related with quotation marks. A MWE is: main document: ...
-3
votes
1answer
142 views

How to insert picture here?

I want text to flow picture, as it is in the book: And with advice of @Johannes_B I did it with help of minipage, but It doesn't suit me at all things. See this. First page of my document. Do ...
0
votes
0answers
70 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 ...
3
votes
1answer
80 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 ...
1
vote
1answer
50 views

Insert a special character at each end of line in a paragraph

I would like to add a character (e.g. $\hookleftarrow$) at the end of each line in a paragraph, in particular in a tabular cell, only if the paragraph has more than one line. How can this be coded?
2
votes
2answers
244 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} ...
0
votes
0answers
39 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 ...
0
votes
1answer
17 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
37 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
40 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 ...
2
votes
1answer
54 views

Suggested objects permitting table-like-column formatting and page breaks amidst long lists of breakable content

My preferred way of structuring and formatting large lists of content is with longtable. Some of my cells contain a lot of text, both in paragraph and itemize or enumerate environments. For reasons ...
1
vote
1answer
57 views

Non correct output of bibliography entries after highlighting an author

Following the instructions provided by gogolin in this [topic][1] I encountered some problems in the output of my bibliography: Instead of getting Doe J., Smith A., ... it is displayed Doe, J. ...
0
votes
2answers
64 views

Multiple aligns and line breaking

I am trying to have multiple alignment in my equation in addition to line breaking. Here is a MWE illustrating my problem: \documentclass[10pt]{article} \usepackage[T1]{fontenc} \usepackage{amsmath, ...