{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

1
vote
0answers
8 views

htlatex adding _ after - in URLs

I'm using htlatex on Fedora 21, texlive-tex4ht-svn33024.0-1.1 I noticed that whenever a URL has a hyphen within it, in the HTML output it's formatted with an underscore symbol following -. For ...
3
votes
3answers
22 views

Title Centering and \newpage command inside \newcommand

I wanted to create a puzzle book with 3 parts, Problems, Hints and Solutions. Both LaTeX-Community and TeX.SX have helped me in figuring that out. I want to do two things: To centre the Part ...
2
votes
1answer
38 views

Help formatting really long equations

I have some really long differential equations and I'm having trouble figuring out how to format them the way I want. I want them to look liek this: dx/dt = blah blah blah blah dx/dt = blah ...
4
votes
2answers
52 views

Dividing a page into independent parts/columns with different widths

I want to divide my page (A4 landscape) into different parts. The top should consist of four columns with different widths and no rule. For this I used vwcol but I could not figure out how to do a ...
5
votes
1answer
96 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 ...
0
votes
0answers
26 views

Font style and chapter style

I would like how to mimic the chapter and font style used in the following document: I would be very pleased if you help me broadly.
3
votes
2answers
100 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
108 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} ...
0
votes
0answers
20 views

\pause in KOMA-script scrartcl

Is there any way that I can use the command \pause in KOMA-script presentation? The \coverand \uncover commands seem to unfunctional as well. This is the template I use: ...
3
votes
1answer
52 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
1answer
53 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 ...
4
votes
3answers
224 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 ...
2
votes
2answers
65 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
1answer
37 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 ...
2
votes
1answer
51 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 ...
2
votes
1answer
44 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 ...
3
votes
0answers
69 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 ...
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
67 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 ...
7
votes
1answer
95 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 ...
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 ...
2
votes
1answer
32 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
31 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} ...
0
votes
0answers
23 views

Formatting columns with multicols and lstlisting

I want to get the code displayed in the picture below to come after the title I have for it. I know I have previously asked this question but it was detailing with enumerated items. Can I get some ...
1
vote
1answer
69 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
2answers
38 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 ...
0
votes
0answers
35 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
299 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 ...
0
votes
0answers
74 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
83 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 ...
3
votes
2answers
38 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 ...
3
votes
1answer
38 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 ...
7
votes
2answers
245 views

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

How can I style some element that looks like stackoverflow tags?
1
vote
1answer
87 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 ...
2
votes
1answer
80 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 ...
2
votes
1answer
75 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} ...
6
votes
2answers
163 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
1answer
147 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, ...
4
votes
2answers
83 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
120 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
32 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
2answers
54 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
96 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 ...
7
votes
1answer
63 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 ...
0
votes
1answer
142 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 ...
0
votes
1answer
22 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 ...
3
votes
3answers
74 views

Writing manual summation of two numbers

How would you write a manual summation of numbers in TeX? That is, something like this(not necessarily identical):               ...
2
votes
2answers
88 views

Same command is used more than one number of time but i am getting only last output

I am defined \editor{strong text} and \reviewer{strong text} command is used more than one number of time. But, I am getting only last \editor{Some Text} command output. My class file defined this ...
2
votes
1answer
29 views

Using default values in arguments in marginsize command

I am using the resume document class to write my resume. Since I want to make my resume fit in one page, I would like to decrease the spacing at the top of the document but keep the bottom, right ...