about using TeX's programming capabilities to modify input text.

learn more… | top users | synonyms

0
votes
0answers
31 views

Maths formulae on mobile devices [on hold]

Sorry if this if this a bit vague, I only have a basic understanding of laTEx, a failure of maths and writing this on behalf of my client. Is there the equivalent of CSS for laTex? With ...
1
vote
0answers
18 views

Changing the font size of rotatebox

How can we change the font size of the text appearing in the rotatebox? For example: \rotatebox{90}{test text} I would like to change the size of "test text".
2
votes
2answers
37 views

How to make equation text size to be normal

The letters in my equation are shrinking and I'm trying to revert that: I'd like them to appear as follows: If you notice you can see that the parenthesis' size on second image vary like 3 times ...
11
votes
7answers
824 views

Remove leading zeroes from an integer

In the documentclass I am writing, the user will input an integer such as \lessonnumber as an integer with possibly a number of leading zeroes, e.g. 4 as 04. At some places in the document I will need ...
0
votes
1answer
73 views

Italic or font change for a whole section

I would like to change the appearance of a whole section in a text with math content. I have for instance a half page with several equations in it which I would like to be differentiated from the rest ...
4
votes
1answer
118 views

In LaTeX, what is the most efficient way to search for an optional token in given input?

My question is inspired by this comment by Joseph Wright. Let's say we have input strings with varying character combinations, such as: ...
1
vote
0answers
22 views

My text in \maketitle is keeping long distance with the \resheading

when i am writing in maketitle or am making an itemize it is coming after keeping some distance as seen in the screen-shot. \resheading{KEY AREAS:} \maketitle{July 2007 to till date: (Project ...
0
votes
0answers
31 views

Beamer: control thickness of roman text in math environment (and vice versa)

Problem: I've written the following expression with beamer \begin{exe} \ex $\llbracket \phi\wedge\psi \rrbracket^{\mathcal{M},w,g} = \textsc{alt} \left\{ \alpha\in W ...
0
votes
0answers
47 views

textblock* on every page

I have following: \begin{textblock*}{15mm}(191mm,20mm) \begin{spacing}{6.2}\noindent\thin\color{black} {\fontsize{50}{60}\selectfont M\\ Y\\ T\\ E\\ ...
3
votes
2answers
141 views

How to tie TeX macros to text or another macro?

Is it possible to tie a TeX macro to some text (e.g. the next paragraph) or another macro? For your information, here is a more specific description of the problem: I am using a set-up macro ...
0
votes
0answers
28 views

Said number in latex [duplicate]

it is very easy to make receipt money form in excel. For example : $34,125 (Said: Thirty Four Thousand One Hundred and Twenty Five Dollar) Said Number made automatically by macro excel. Said ...
3
votes
0answers
88 views

How to add/check missing punctuation marks (itemize/enumerate) automatically?

(An experiment) I'd like to present you one of the possible tasks (to be automated) I solve in my daily work: adding missing punctuation marks in the itemize and enumerate environments. I polish ...
0
votes
0answers
36 views

Multiple file editing with by changing one file only?

Note: question is not formatted properly. If better suggestions please let me know. I have a resume made in Latex. From master copy containing all the details , 3 children copy relevant to specific ...
1
vote
1answer
29 views

Problem with text position after inserted figure

I have following MWE: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[color=red,opacity=0.1,contents={}]{background} \usepackage{hyperref} \usepackage{indentfirst} ...
2
votes
1answer
79 views

Fill line with asterisks [duplicate]

I want to fill a line with asterisks just like as with \cdots or \ldots that can be used in tables, \leaders solution doesn't work well. I'm working in a fixed columns width table, where at the end ...
2
votes
1answer
114 views

Properly Positioning text in beamer using textpos

I am using textpos to control the position of text in a beamer frame. What I want to do, is to place some text on top of an image. I am using the package in absolute mode and I want to place the text ...
3
votes
2answers
79 views

Define command that either does \kill or \textcolor

I have some paragraphs in my thesis, that will stay in there until just before it is finished. They should be marked as non-important to my supervisor. Then I'd like to remove those paragraphs all at ...
5
votes
1answer
139 views

Convert all all-caps words to small caps

I'd like to turn all all-uppercase words, acronyms etc. into small caps, preferably automatically on the fly and without changing the source files. The ideal solution would also allow me to block some ...
7
votes
3answers
275 views

Automatic apostrophes for quotation marks

There are some other questions on this side addressing related issues, but I haven't found any which cover exactly my issue. I have a text (converted from XML) which uses the apostrophe ' with three ...
5
votes
2answers
115 views

Move textregistered symbol more towards the top right

I have this as my code: \Huge\bfseries Cambridge IGCSE\textsuperscript{\small{\textregistered}} And this shows: To make it more aesthetically pleasing, how do I move the text registered symbol a ...
2
votes
1answer
60 views

Move text / numbers to a new line

Let's say you have a few pages worth of text then numbers, ie name address phone number. Example : Name address 0123 4444 name address 0987 6754 name address 5674 5643 etc How can one create a rule ...
0
votes
0answers
50 views

Using lots of symbols in general text [duplicate]

I am trying to reference in my report however as the referencing guide suggested includes lots of symbols ie ( :,;,<,>,/,\,[,],(,),_,~,) when i press play in latex i get the error "missing $" as ...
1
vote
1answer
51 views

Placing the text under a line in a multiline form

I am typing a form like the following: I want to make a command \newcommand\myform[1]{ *** #1 ***} that will produce the filled-in form with the argument substituted into it. For example, the ...
3
votes
2answers
99 views

A circular version of \underbrace or \widehat

I'm new to LaTeX and am searching for a function that acts like \underbrace or \widehat but is circular (I don't want the pointed middle part). Does such a function exist? I tried using Detexify but I ...
11
votes
1answer
133 views

Why spaces are ignored even in textual arguments within \ExplSyntaxOn… \ExplSyntaxOff?

I've seen workarounds for having the spaces recognized within \ExplSyntaxOn... \ExplSyntaxOff. But I wonder why spaces are unrecognized even for (LaTeX3) macros arguments undoubtedly expecting text, ...
8
votes
4answers
415 views

truncate text from left to right

I simply need to truncate a text string, which is just a sequence of characters without whitespace, therefore the linebreak won't work. I just need to decide the length of the string in centimeter, ...
1
vote
2answers
73 views

Latex equivalent of DECODE (check text and assign number) [closed]

I've four probable sentences in CSV file. Ex: sentence 1 here , one more sentence, one more sentence added, last sentence. In Latex; I want to print 1 if "sentence 1 here" is present. Something like ...
6
votes
2answers
164 views

Is it possible to add text underneath a part's title?

In a LaTeX report I'm working on, I have used \part{title of part} to organise the chapters into parts. This gives me distinct pages for each \part specified which is what I want. But if I try to add ...
12
votes
3answers
1k views

Difference between *.tex and *.txt Files

Is there any difference between the two file-formats? Do I see all the data, when I open a .tex file using a Standard Text-Editor in Windows? Do .tex files have some kind of meta-data or disguised ...
5
votes
3answers
165 views

align with text

I have some equations into the aligning environment and i want below them to write something. But in the same time also want those to be aligned. In particular Imagine that I want or i could do this ...
1
vote
1answer
68 views

Filling a page with figures

I have a text and then a bunch of figures. I would like to fill A page with all the figures so the text would continue AFTER this page. In other words I would need something like this : Page 1 : text ...
2
votes
1answer
44 views

One Command to Rule Both Colored Text and Invisible Text

I have to send a paper to two different people. For the first person, I have a bunch of questions that I would like to add throughout the paper and in color. For the second person I don't want the ...
5
votes
2answers
169 views

Overlapping text or… text above text!

I was trying to do this exercises and I can't achieve exactly how they have to look: I'm not an English native speaker and in Spanish there isn't that much documentation. I was trying to find an ...
3
votes
2answers
84 views

Printing just the first 20 characters of a text, adding \ldots

Is it possible to truncate the name of a chapter to - let's say - 20 characters and adding \ldots to it? So that it fits into the space of the tabs shown here?
1
vote
0answers
53 views

How to make sure numbers is in upright [closed]

How to define a function, say \makenumberup, when it apply to simple strings, it makes all numbers (not math!) in upright? So \makenumberup{Year 2010.} will equivalent to Year \textup{2010}.
1
vote
0answers
60 views

Parse markdown automatically (just emphasis) without luatex

I want to parse markdown emphasis automatically in XeLaTeX. This basically means converting asterisks either side of a word into the \emph{word} that LaTeX uses. I know that more complex Markdown ...
6
votes
2answers
341 views

Vectorized Text Effects/Transformations: Stretching & Expanding (WordArt)

I'd like to apply a text transformation similar to what the Inkscape extension 'Modify Path -> Envelope' does within LaTeX: In-source documentation of the envelope extension: This extension ...
4
votes
1answer
192 views

Is there any automatic way to detect hanging text on the right in LaTeX?

I wonder if there is any automatic approach to detect hanging text all throughout the 200-page thesis, mostly due to hyphenation issues. Consider the output below, there is like a subtle hanging text ...
4
votes
2answers
152 views

Horizontal space before block of text

Hi, I wanted to create column of text after bolded "Lorem Ipsum 1.", which has no specified linebreaks. This space before text (marked on image with red line and question marks) should have exact ...
5
votes
2answers
97 views

Replacing substrings by linebreaks

I have a LaTeX document with several authors that I enter like \author{First Author \& Second Author \& .... In some places in the document I want to print these authors with a linebreak ...
7
votes
1answer
195 views

Text doesn't fit the box

I created the following picture with Inkspace and made export to tikz. The problem is that the text doesn't fit the boxes. And the arrows should be colored with a gradient, but it's not so important. ...
27
votes
3answers
581 views

truncate text from right to left

I would like to have a command that truncates text like 'An example sentence.' to '...ple sentence.'. When called like this \truncateToLeft{4cm}{An example sentence.} I have no idea how to ...
7
votes
1answer
112 views

How can one make border of text for a figure?

I want to take text and wrap it around as the border of a figure. That is, text on the top, wrapping to sideways text running down the right, wrapping to upside down text on the bottom, wrapping to ...
3
votes
2answers
2k views

How can I force-move text?

My question is simple: how can I force-move text to the left or right (or even outside of the margins)? Some examples would be perfect.
8
votes
1answer
104 views

Typeset just the first letter in a group

How can I typeset (print) just the first letter of a group of text? For instance, how does biblatex or bibtex determine the first initials of a name? MWE to get started: \documentclass[]{article} ...
1
vote
1answer
707 views

How to escape properly and output regex in latex?

Escaping regex is a heck of a work on LaTeX. How should I write in latex syntax such that I can output the following regexes: ^\(?\s?\w{1,5}\s*[):.]\s* and [\[\(].{1,}[\]\)] I've tried ...
7
votes
1answer
101 views

Transformed text as from a specific viewport

Is there a possibility to shear (any) LaTeX text or the output of a mathematical formula as it would be obtained as a result from looking at a different angle/viewport? I do not mean mere rotating of ...
1
vote
1answer
48 views

Pre-compiling with a different syntax [closed]

I am looking for a pre-compiler to introduce a customized syntax into LaTeX. Hope that an example will be worth a thousand words: I would like to compile this \thm The sum $ 1+2+3 is equal to ...
5
votes
2answers
162 views

How to use \left and \right inside text environment

I would like to know how to use the \left and \right options in the text environment. This is what I am trying to do: \left( when factorizing $e^{-2000t}$\right) As you can see, I am trying to make ...
8
votes
1answer
294 views

How to do multiple string replacements?

I want to escape URL paths to obtain the percent-escaping that is also applied e.g. by browsers. For this purpose I tried to do the following (out-commented lines are meant to show what I'm aiming ...