{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

5
votes
1answer
47 views

Packages to print tabs on page border

What are the different packages available to print tabs on page borders like this ?
1
vote
2answers
19 views

Bibliography style paragraphs wrong behavior

My code is: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{fancyhdr} \usepackage{pgfplots} \usepackage[letterpaper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry} ...
0
votes
0answers
19 views

Remove white spaces from latex [duplicate]

How can the white spaces from the output of the following line: $C++$ be omitted so that there is no white space between 'C' and '+' and the last '+'. The current output is: C + + C and the ...
2
votes
1answer
37 views

Math Environments / comment lines

I can not cope with such formatting (as pictured). I do not know how to divide the comment lines. Thank you for the tip. It would be wonderful if it was a solution that works for mathjax
3
votes
0answers
84 views

Readability of text-heavy latex file

My question is not concerned with the output, but the readability of the input. I am looking for advice for making text-heavy latex code more readable. I know there are already topics on making code ...
0
votes
0answers
30 views

Text formatting, how to generate everything not in plain text

I want to put some text in latex, which looks like { "wow": 15, "nice": 1 }, { "wow": 24, "nice": 1 }, But If i generate ...
3
votes
2answers
51 views

How can I force the argument of a summation to not be offset [duplicate]

Right now, my summation looks like this since I have a long bottom argument: $\sum\limits_{x \in A[1...i-1]} x$ How can I make it so that the x is not so offset by the bottom argument text?
1
vote
1answer
57 views

Table formating problem with siunitx, parenthesis, and scientific notation

I am having an interesting issue with spacing with siunitx, parenthesis, and exponents in a table I am using. Currently I am trying to make a regression table with standard errors reported below the ...
7
votes
2answers
97 views

How do I include the EBNF square brackets on a new line and set the font to typewriter throughout my grammar in the syntax package?

I want to add an EBNF grammar to my document and following the answers here and here, it seems that the most popular package for this is syntax. However, in the documentation it is not clear how to ...
1
vote
1answer
42 views

Format code listing package

I am documenting a script which has almost 43+ keywords. The output I want is something on the below lines... and the latex code I have is \documentclass[a4paper, onesided]{article} ...
1
vote
1answer
54 views

How do I type TeX without using the command? [duplicate]

How am I able to format TeX without using the command? I know I can use \TeX and it'll do it automatically but I'd like to do it manually for other stuff.
1
vote
1answer
17 views

Intext citation in IEEE format

I am trying to cite my bibliography in IEEE format using the \cite command. However, the generated output appears like (1) rather than [1]. Here is a snippet of my file: \usepackage[]{natbib} ...
1
vote
0answers
39 views

Help identifying LaTeX code-style feature

The document below uses a feature I can't quite identify to display monospaced code-style font sections: Does anyone know how to achieve this effect?
0
votes
2answers
40 views

How to avoid a blank page when using \chapter*{}

So when using \chapter*{} this introduces a blank page before the next \chapter*{} I'm guessing it is because I am using a book format, tried putting it into a new group and clearing double page but ...
2
votes
2answers
107 views

Automated Creation of Questions and Solutions for a Worksheet/Exam

Overview My title is the not the best, and I will edit it if there are any better suggestions! In a nutshell, what I am trying to achieve is to randomly change numbers in a maths question and have a ...
1
vote
1answer
30 views

Bold incorrectly applied to Table of Contents

I am using the report class in TeXworks/MiKTeX and was provided with a style that is a little out of date. I am having trouble with a bold section format being transferred from a page into my Table of ...
0
votes
1answer
45 views

How to move the abstract to the left column?

My question is similar to this question, however, instead of a picture, I wish to move the abstract section to the left column, using same document class. Can anyone help with this? The document ...
3
votes
1answer
47 views

Change text height and pragraph indent in text block

I am trying to create a title page for my thesis. I did this code with the help of friends on this site. Now I have a new problem. In my code I want to change the text height and line spacing in only ...
0
votes
1answer
29 views

xparse: missing space after document command expansion [duplicate]

I'm having a problem with the below code. It's the smallest I could make the example. I'm working on a document with an index of persons, and have for this purpose created a command for each person. ...
1
vote
1answer
29 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 ...
2
votes
2answers
70 views

Making row bold and keeping other formatting in pgfplotstable

I have a table where the last row needs to be bold. Currently, I can make it bold by following this question. However, when I make it bold, I lose all my number formatting. Here are the 2 images: ...
3
votes
1answer
38 views

Changing the look of the endnotes on the 'Notes' page (\theendnotes)

In the report I am writing, I am using both footnotes and endnotes; footnotes just as normal footnotes, but endnotes for citations (I don't particularly like the normal way of citing things in LaTeX). ...
5
votes
2answers
171 views

change .bst file to get journal name bold

Based on this question, I have a certain problem. In my reference list, I want to make the journal title both emphasized and bold (as opposed to only emphasized, as it currently is). Following the ...
1
vote
1answer
52 views

How to change the section's content format?

I have written a latex file including multiple layers of sectioning. What I want to do is change the tabbing/location of each layer. And maybe also change the font or something. But the problem I ...
1
vote
0answers
34 views

Creating an Elimination Matrix with strikethrough rows/columns [duplicate]

I am writing a paper, and I need to display an elimination matrix during the steps of finding a determinant. \[ A =\begin {bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} ...
2
votes
1answer
40 views

Adding signature in pdf (jpeg or png) format with a bottom border

I currently have this layout: \documentclass[11pt, a4paper]{article} \usepackage{graphicx} \usepackage{multicol} \begin{document} \begin{multicols}{2} \textbf{Position} \par \medskip ...
2
votes
1answer
35 views

Referencing a Source Code Listing

I would love my listings to look like this: With the references as shown. is this possible? Would I need to use TikZ? I have done a pretty exhaustive search but can't find out how this was ...
3
votes
1answer
22 views

How to align text and floats on the top of text line in a two column environment

I have a LaTeX document below which generates two column text. When I insert a float environment, the top line between two column is not aligned. My question is how to align them. Thanks a lot. ...
5
votes
1answer
112 views

How to reference source code listing

I am using the listings package to incorporate listings into my paper. However I'd like to reference individual parts of the code with a small circular number (such as say the number 1 in white ...
2
votes
1answer
197 views

How do I make a 7 with a horizontal line through the middle? [duplicate]

I've been trying to create the 7 I'm used to writing by hand in LaTeX with a horizontal line through the middle. This seems like it should be a simple thing to do, but I don't see any native support ...
2
votes
1answer
61 views

How to remove cell padding in longtable environment?

I have a table that spans multiple pages. So naturally I used the longtable environment in the landscape mode. The table works fine but output has large amount of vertical cell padding and sometimes ...
0
votes
1answer
51 views

How to set the fonts of the latex file?

I am a newbie in LaTeX. I am editing a paper, which is two column. The first paragraph of the paper is the abstract. I want my abstract to satisfy the following requirement: The abstract should ...
2
votes
1answer
33 views

A manually created suffix for section titles compiled using tex4ht

I am building a document that looks one way with xelatex and another plain text file appearance using tex4ht. I produce an html document that then produces a great document that can be copied into ...
3
votes
1answer
32 views

Adding subsubsection to smoothtree outertheme

I would like to make the name of the subsubsection appear in the presentation. Here is my MWE: \documentclass[dvipsnames,svgnames,table]{beamer} \usetheme{Warsaw} ...
2
votes
1answer
57 views

How to create my own bibliographic citation format?

I need to meet my university's requirements for a thesis. What I need seems to be simple but I haven't found a direct way to do it. What I need In the text, the citation must have the first three ...
4
votes
0answers
63 views

Distinguish between upper index and power [closed]

I am currently writing the scriptum of our theoretical physics lecture. I always have trouble with the notation. Our professor uses lower indices like m_i for the i-th mass, upper indices like ...
1
vote
1answer
56 views

Getting large braces in MathJax [closed]

In answering this question on math.se I used the expression {{{|}|}|} and wanted to enlarge the outer braces to show the pairing. I tried \left \{ \left \{ \{ | \} \right \} \right \} (with ...
1
vote
2answers
38 views

Put image in column

Is there a way to cover a column of a two column page with an image (all the page height, no caption)? This should leave the rest of the page as is - just move the text of the column a bit further ...
3
votes
2answers
41 views

Text too long for the cell?

I am doing this table, but my the phrases are out of the limits of the cells. How can I adjust them in two or three lines instead of one? \documentclass[12pt,a4paper]{article} ...
2
votes
1answer
38 views

format for all a table?

I have a table like this: \documentclass[12pt,a4paper,oneside]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{here} \begin{document} \begin{table}[H] \centering ...
2
votes
1answer
27 views

How to add multiple authors on IJCAY format

I'm writing a paper to IJCAY conference (hopefully it will be accepted), and I'm having a bit troubles on inserting a second author. I know how to do this in general, but I must play by their rule ...
1
vote
0answers
34 views

Personalize document headerwith a table - Lyx

I am trying to put a table as header of every page of my document. This is the cose I put in the Latex preamble setting of LyX: \usepackage{eso-pic} \AddToShipoutPicture{% \AtPageUpperLeft{% ...
4
votes
2answers
57 views

Hide counter for exsheets solution environment

I am using counter-format=se.qu. for my questions which gives the following output In my case I want to hide the counters from solutions (so that I only get Lösungsvorschlag. there without the 3.1) ...
2
votes
2answers
31 views

How to get continuos line numbers for minted code blocks

I use minted in following way: \documentclass[a4paper, 11pt, twoside]{article} \usepackage{xltxtra} \usepackage{xunicode} \usepackage{polyglossia} \usepackage[svgnames]{xcolor} % Syntax higlight ...
2
votes
1answer
32 views

How to add background for texttt (and allow line breaks)

I use texttt{} to write names of software, commands etc. within the text. Sometimes the texttt text is longer and there is a line break within it. It works well, no problem here. I wish to add ...
1
vote
2answers
23 views

Minted “underfull \hbox (badness 10000) in paragraph” when using bgcolor [closed]

When I use minted to highlight BASH code like this \documentclass[a4paper, 11pt, twoside]{article} \usepackage{xltxtra} \usepackage{xunicode} \usepackage{polyglossia} \usepackage[svgnames]{xcolor} ...
1
vote
1answer
57 views

Insert two horizontal lines above and below Contents and List of Figures

I would like to know how to insert horizontal lines above and below the Contents and the List of Figures. I managed to do it for the title of the chapters but not for the TOC and List of Figures. ...
6
votes
3answers
84 views

Alphabetical ordering of items composed of macros in itemize

This is a continuation of the topic: Alphabetically display the items in itemize But sadly I don't have the necessary reputation to comment there. Method proposed by @Werner works perfect, even when ...
2
votes
2answers
69 views

Why does Latex add arbitrary spacing between equations when using multicolumn?

After using multicolumn to divide up the page into three columns, some of my equations massive space in between the texts For example: The left most column, we see that there are spaces between the ...
1
vote
0answers
36 views

Why is there a blank line at the top of the slide? [duplicate]

Currently, I have a blank line appearing at the top of the page. However, I haven't inserted anything here to produce this line, nor is it a standardized format because other slides don't have this ...