{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
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
60 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
54 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
51 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
40 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
46 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
47 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
17 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
32 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
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 ...
0
votes
0answers
33 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
15 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
36 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
24 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
33 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
77 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
53 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
32 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
36 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} ...
3
votes
1answer
76 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
55 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{|} ...
2
votes
1answer
46 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. ...
1
vote
0answers
22 views

Latex, moving specific parts of texts to column / forcing not to skip to new page

probably a stupid question, but something I haven't really been able to find a solution to. I've been working on a project and I can't seem to be able to get it to display how I want. Is there any way ...
0
votes
1answer
48 views

TOC Indent CHAPTER past PART

I'd like to figure out how to indent Chapters in my TOC past the Parts headings. I'd like to do this to improve legibility. This is how my document is laid out in main.tex ...
1
vote
1answer
80 views

How to install the tkz-euclide package to use with Miktex? [closed]

I use Miktex 2.02, 64 bit. When I compile (Latex - PDF) \documentclass{article} \usepackage{fourier} \usepackage[usenames,dvipsnames,svgnames]{xcolor} \usepackage{tikz} \usepackage{tkz-euclide} ...
1
vote
0answers
36 views

How to stop \begin creating a line break

Basically I've created a math theorem called definition At header of the document, declared as \newtheorem{defi}{Definition}[section] Now i've laid out some text and stuff basically what I have ...
2
votes
1answer
35 views

Parshape doesn't work

I know that wrapping picrures is frequent question here, and all of my quetions here are about it. But new day is a new probem. Look at the screenshots... You will get this if you run my code ...
-3
votes
1answer
136 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 ...
1
vote
1answer
66 views

Macros just for certain number of lines

I want to write a macro that will do certain things with a fixed number of lines coming after this macro. For example, how to apply \rightskip=2cm to the first four lines of a paragraph How to ...
7
votes
1answer
51 views

bold just one line inside of lstlisting

How can i bold just one line in this code? \begin{lstlisting} //Algoritmo 2 int f2 ( n ): local i , j , r =0; para i = 1 a n -1 para j = i +1 a n r = r + 2; ...
0
votes
0answers
25 views

Double spacing, not in titles [duplicate]

I aim to write paragraphs with double spaces lines, so I decided to use the setspace package : \usepackage{setspace} \doublespacing But the result is that even in titles, figures, nearly ...
0
votes
1answer
41 views

Compiling a file with repetition of the same document

What I am trying to do is to implement an option on my tex file that allows me to choose how many times the document I wrote is repeated in the compiled pdf. The reason is that I need the pages to ...
1
vote
1answer
54 views

Formatting with fancyhdr [closed]

I need a special formatting for my document which it class is (article). The first page has: special header and NO footer header contains image on the right and text on the left and both on the ...
1
vote
0answers
12 views

How to put address and email after authors not at the end of the document

I am using the BMC tex template, and I am trying to put the address and email of an author at the beginning of the document (right after the author names) and not at the end. Is this possible?
1
vote
1answer
44 views

Small caption under a tikzpicture or image

I have a document and what I want is below every single tikz or image to have a small caption "source: ....". What would be the most convenient way to do that? Code is: ...
1
vote
1answer
40 views

How can I make this tree shrink to fit standard page?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} % Set the overall layout of the tree \tikzstyle{level 1}=[level distance=3.5cm, sibling ...
5
votes
1answer
54 views

\textsc does not make small caps

I try to produce small caps for abbreviations like "AM" or "PM". However, this code \documentclass{article} \begin{document} The flight to Krakow departs at 6:30 \textsc{AM}. \end{document} yields ...
2
votes
0answers
32 views

Is there a way to make a block wrap from the column 1 to the column 2?

I am formatting a poster for my thesis presentation. It is in a beamer documentclass, and I am using blocks within a column environment to split up the information so that it looks nice. I have ...
2
votes
1answer
21 views

Badboxes when using \underline

I have the following: \documentclass[10pt,twocolumn]{article} \usepackage{XCharter,amsmath} \usepackage[T1]{fontenc} \usepackage[right=1cm,left=1cm,top=1cm,bottom=2cm]{geometry} ...
0
votes
1answer
30 views

Copying a URL into latex

I have a URL(below) that I want to put into latex as a reference but as it has % symbols in then it gets commented out. Is there a way to do this so it displays normally? Thanks ...
2
votes
0answers
26 views

Creating a line between one paragraph and the next

I just want to make it such that there is a line between my current and my next paragraph but also to have no indentation on the second paragraph.
3
votes
1answer
42 views

Change main text font only

I am writing a book and I use \usepackage{charter}, but this changes the font of the main text too. How do I keep the font for Chapter title, Section title, header, footer etc of this package and use ...
1
vote
0answers
25 views

Adding bullet in the end of a remark or an exmaple [closed]

I’d like to add a bullet at the end of an example associated with my thesis. For instance, how can i achieve that in the last statement here ?
0
votes
0answers
24 views

Page content formatting

So have found some issues with page content placing. It never happen to me before. So I have 3 pages of text and one table (which is 1 page length). These all pages are two sections. First section is ...