{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
45 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
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} \...
1
vote
1answer
29 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
44 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
88 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
174 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
26 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
53 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
24 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 ...
1
vote
0answers
22 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
87 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
43 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
35 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
68 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
48 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
58 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
67 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
187 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: \documentclass[10pt,english,british,twoside,openany]{...
-3
votes
1answer
146 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
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 ...
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
255 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
48 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
19 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
38 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
42 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
55 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
61 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, ...
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
63 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 ...
2
votes
1answer
220 views

adding new address email and so on in moderncv

I tried this is example found in a previous question here: \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{casual} \usepackage{etoolbox} \makeatletter \newcommand*{\homepageA}[1]{\def\@...
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
14 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} \...
9
votes
2answers
305 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{% \renewcommand*{\mkbibnamelast}...
9
votes
3answers
8k views

Matrix Inverse symbol

Is there a symbol for the inverse? I have been using X^{-1} for my matrix inversions, but this results in the -1 being rather large and taking up almost as much room as another symbol. Is there a ...
33
votes
4answers
30k views

Non italic text in theorems, definitions, examples

What package should I use, or what setting can I make to the font in theorems so that the text wouldn't be italic. I use amsmath, and from default, everything I write in theorem environments becomes ...
2
votes
2answers
61 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
52 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. ...