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

How to put four lists on a page, each taking one quarter of the page?

I am trying to add a SWOT analysis to my document and would like to have it set out in a 2x2 grid, where each grid space takes up 1/4 of the page regardless of the content. Is this possible with ...
3
votes
2answers
126 views

Coloured swatch per chapter

I know that this should be possible, but I'm not sure how to go about it. I would like to have a small rectangle appear on each page (outside edge), which runs right up to the edge of the page, and ...
5
votes
2answers
135 views

Chapter and Section format

I want my chapter titles to look as they would with the code below. \documentclass[12pt]{book} \pagestyle{plain} \usepackage{amssymb,latexsym} \usepackage{amsmath} \usepackage{amsthm} ...
2
votes
1answer
65 views

Suggestions for nested proofs

I would like to write down my lecture notes. The proofs of the theorems in this lecture are usually really big. It usually looks like this: Theorem 1: Here comes the statement of the Theorem ...
3
votes
1answer
68 views

Vertical strikethrough

I'm currently trying to TeX up a Sieve of Eratosthenes example on the integers 2-100. I'm already using the ulem and cancel packages to give me horizontal and diagonal strikethroughs but I need a ...
2
votes
2answers
80 views

How to remove period after part number in TOC (KOMA used)

How to remove period after part number in TOC (KOMA used)? My solution was to set tocloft package, which is provide command \cftpartaftersnum but I do not want to use it for some compatibility ...
4
votes
3answers
305 views

How to round number to two digits after the decimal place and have a comma separator?

I have the following function: % Formats inputed number with 2 digits after the decimal place \newcommand*{\formatNumber}[1]{\FPround{\cost}{#1}{2}\cost} % \cost goes through some calculations ...
21
votes
3answers
918 views

Automatic bold for every first character of a line

It's possible to do this Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis ...
3
votes
1answer
81 views

How can I make text inside set notation look like normal text?

I'm very new to LaTeX, and have never been very good with computers, so apologies for not knowing how to post questions on here properly or missing out anything important. I have this: ...
4
votes
1answer
63 views

How to indent bibliography items using a bibtex bibliography?

I have seen an excellent answer for adding an indent to the bibliography here Indent second line of a bibliography and wish to replicate that for my example using bibtex rather than putting the ...
0
votes
0answers
20 views

Remove square brackets from bibliography list [duplicate]

I have seen that BibLaTeX bibliography without square brackets provides an answer to how to remove square brackets in this example. However, I do not know from that answer where those adjustments can ...
3
votes
0answers
91 views

Changing top margin for second page only? \vspace inserts extra whitespace

I am trying to format a LaTex template for pandoc output from .md to pdf. The document is for lengthy university papers requiring very specific layout. The majority of the paper has 1 in margins all ...
2
votes
1answer
75 views

The RTL beamer Warsaw theme

I have asked a question in RTL tableofcontents) in arabic (or polyglossia package) beamer and gotten my answer well by Seloumi. After thank him, I have another question. How I can change position ...
5
votes
1answer
96 views

Format Name of Video codecs

I'm currently writing my Masterthesis for a german University. I used a few different codecs in my work (like H.264). What is the correct/sensible way to write them in my Latex Document? Examples of ...
2
votes
1answer
56 views

Arrows to text above and below line

I have been searching for an answer for some time but have not come across a solution. I am taking some notes from a programming course and need to take a line of code and identify each individual ...
6
votes
2answers
773 views

Listings language definition keyword suffixes

I'm trying to create a listings language definition for ARM assembly and many of the instructions have prefixes/suffixes (i.e. BGT, BLE, BNE, BEQ branch instructions). Is there a way to define B with ...
0
votes
0answers
27 views

included pdf files, shift to the left [duplicate]

I'm totally new and hope that this isn't a stupid question... Anyway I downloaded this template and used it to write my thesis but at the end I wanted to add some pdf files as annexes. So in my annex ...
2
votes
1answer
81 views

How to change the color of header?

I downloaded a Radboud University Beamer (version 1) and try to change the color of left part of header from black to blue. i.e., How to change the black to another color as shown in the following ...
8
votes
1answer
112 views

Why are default LaTeX TOP and BOTTOM margins so big?

In the question Why are default LaTeX margins so big?, it is explained very well why the side margins have the large size they have (compared to most Word processors): The smaller line width provides ...
0
votes
2answers
244 views

How to include tex files

Is there any way that I can add different .tex files (From different folders) into another folder's .tex file? I meant that all of the .tex files will be fine and separated and I just need to ...
2
votes
1answer
64 views

Requesting a symbol, please assist

I hope it's not out of the line to ask for a symbol like this, but I've been looking for a very simple symbol that I just can't find anywhere! I want it to be like ⊣ but instead of the | at ...
1
vote
1answer
75 views

Stating linear program

i want to formulate a linear program. But all i found is not what i am looking for. It should look similar to this picture: The main difference is that i want on right sight automatic numbering ...
2
votes
1answer
38 views

Verses not ragged right

When I use the verse package, a single verse will not be ragged right if it is broken at the end of the line. How do I change it to being ragged right? \documentclass[twocolumn]{scrartcl} ...
3
votes
1answer
35 views

Theoremstyle : adding dots

I need an extra dot in the format of \theoremstyle, for example; 2.1.3. Theorem 2.1. Lemma I use : \documentclass{article} \usepackage{amsthm} \swapnumbers \newlength{\spacelength} ...
7
votes
2answers
250 views

Is there a way to create elements that looks like tags?

How can I style some element that looks like stackoverflow tags?
2
votes
2answers
45 views

Theoremstyle; leaving vertical space between the theorem header and the body of the theorem

I'm trying to write a thesis. There, they want a completely blank line after theorem, lemma, proposition, etc.. name. How can I leave such a vertical space between Theorem Head and the body of the ...
5
votes
1answer
253 views

How to change the font shape in the body of theorem environments?

\documentclass{article} \usepackage{amsmath,amssymb} \newtheorem{defn}{Definition} \newtheorem{pro}{Problem} \newtheorem{thm}{Theorem} \begin{document} \begin{defn} This is the first definition ...
0
votes
0answers
40 views

Help with making a package

I'm trying to design a package so that I can 'theme' a document quickly. I've done this, but as a sort of academic exercise I'm trying to design an option compact that adjusts margins, title, and ...
6
votes
2answers
554 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 ...
3
votes
2answers
48 views

Revisions of a theorem where numbering goes 2.0, 2.1,2.2

I would like to give different equivalent versions of the same theorem, eventually proving the last version. The first time I state the theorem, I would like it to have the number 2.0. Each successive ...
0
votes
0answers
75 views

Formatting like this sample

I'm writing my dissertation and have difficulties in producing the same formatting as in the sample. Can anyone help? There are several requirements here: CHAPTER NUMBER: TITLE (in captions and in ...
1
vote
3answers
86 views

How to setup a cheatsheet with a table-based layout?

I have lots of data, with small records and a relatively small amount of fields; for the sake of this example imagine that I have a database of x-thousand people were I just save relatively short ...
1
vote
1answer
88 views

Format painter feature in LaTeX

I wish to know if there is any short cut in LaTeX to suffix and prefix $ symbol for math text. Say I have to write many times some variables such as x, y, and z. I wish to type them normally, and at ...
3
votes
1answer
45 views

Formatting Enumerated columns

I am using writelatex.com to type my homework. The problem that I am having is that I can not format the two columns below as I want. what is happening is that all the information that comes after the ...
2
votes
1answer
89 views

pgfplots significant figures

I'm trying to work out how to change the number of sig figs in the axis labels. I.e., I want the graph to display 0.0, 1.0, etc. Any ideas? \documentclass{memoir} \usepackage{pgfplots} ...
2
votes
1answer
89 views

Multiple Altconditions within LaTeX Document

The question refers to this solution and trying to modify the code to support multiple altconditions in my document. The problem is to allow two sets of alternative conditions within the same ...
5
votes
1answer
150 views

How can I automatically prepend a prompt (e.g. $) to each line of a listing?

I have something that looks as follows: \documentclass{article} \usepackage{listings} \lstnewenvironment{shellsession}[1][] {\lstset{language=bash, basicstyle=\small\ttfamily, numbers=none, ...
6
votes
2answers
175 views

Fractured line drawing in LaTeX

whenever i try and draw a slanted vector or a line in the picture environment, I get this broken line output. Does anyone know how to fix this?
5
votes
2answers
98 views

Enhanced fill-in-the-blank document

I am about to improve my lecture slides from last semester. Specifically, I would like to add a fill-in-the-blank option. I found this code suggestion (from here): \documentclass{article} ...
4
votes
2answers
126 views

Remove table borders

I am trying to code a table in latex that looks like this: and my attempt is this one: \documentclass{article} \usepackage{array} \usepackage{booktabs} \begin{document} \begin{table}[h] ...
1
vote
0answers
38 views

Formatting maple for latex

i am doing some linear programming in maple, and sometimes the matrixes are quite large. I know that maple have a /latex(expression) function, but when i have a vector, that have fractions in it, out ...
3
votes
1answer
1k views

Overfull \hbox in paragraph at lines 57--63

I've finally made the move to org-mode from Evernote, I can get simple documents exported via tex to pdf, but i have things like this in there: Create Apache virtual host file ...
0
votes
1answer
190 views

A seemingly canonical preprint style in mathematics

There seems to exist a style for preprints that is common on arxiv.org. A completely (!) random example which I have picked up just now illustrates that style. http://arxiv.org/pdf/1305.2775.pdf ...
3
votes
2answers
64 views

Format of text within Tabular environment

I want to make the words "words words words" be directly below n^k. What I have tried so far has not worked. That is, \newline, \\, and \underset{} cannot accomplish what I desire. Example Code ...
3
votes
2answers
117 views

width of \parbox issue

I am using a template for a CV in LaTeX and I am facing certian difficulties in getting things aligned properly. The code I am referring to is \newcommand{\NewEntry}[3]{% Define a command for each ...
4
votes
1answer
107 views

Vertical chapter title in the table of contents

I'm about to write my thesis, and finally decided to do so in LaTeX. I'm still new to it though, and was wondering if something like this is possible in the table of contents: --+ | I | N | ...
0
votes
1answer
152 views

Problem with crosswords

While making a crosswords in LaTeX, I found out I am unable to do two things: A part of it must be blue. Two letters must be visible in the unsolved version. Can anybody tell me how to do these ...
7
votes
1answer
65 views

How do I change the size of a matrix within a matrix?

I am trying to make the inner matrix the same size as the 0, i.e. the large matrix should have two equally sized components, a 0 and a small matrix (1,0). Here is my MWE ...
4
votes
2answers
125 views

How to use \underline and \emph over several words with gb4e?

How can I underline several words in a gloss without messing up the alignment? Here is an MWE. \documentclass{article} \usepackage{gb4e} \begin{document} \begin{exe} \ex[*]{\gll Me ...
0
votes
1answer
25 views

TOC Spacing between number and header [duplicate]

How do I increase the spacing between the subsection number and header name in the table of contents. I am using www.sharelatex.com. When I have a large number of subsections the section numbers and ...