Questions tagged [text-manipulation]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
66 views

Custom text alignment

Is there an option to define custom alignment for text? For example, to make your own \begin{flushright}...\end{flushright}? In particular, I want to have an alignment (for text) that it is centred ...
1
vote
1answer
27 views

text mining and cross referencing

I want to make an adjacency matrix with citations. I want to conduct make an index of 130 words and search 130 papers against the 130 words. Manually this is a long process. But I want to automate ...
1
vote
1answer
38 views

Character replacement does not work correctly

I am replacing a character. It works fine if I give that character as input directly. But when that character is extracted from a string, and then fed in to command for the reassignment it does not ...
0
votes
2answers
70 views

Writing text side-by-side [closed]

Can someone please help me figure out how to write two columns of text side by side for just a short region of a page in LaTeX? As a MWE please see the attached pic. Edit : I just want to write two ...
3
votes
5answers
139 views

separating characters in a string

I want to write a macro that will separate the characters in a given string with some condition. If I have a string abcdef<ghi>jkl<mn>opqrs I want to access each character as a string for ...
1
vote
1answer
37 views

how to shift text right in a tabular data

This is code in a simple document I am writing abbreviations. \begin{tabular}{l l} \textbf{VM} & Virtual Machine\\ \textbf{AWS} & Amazon Web Services\\ \textbf{GCP} ...
0
votes
1answer
32 views

How to change the size of all types of text?

I am fairly new to latex, but when I started writing my document, I noticed that the text was very small (from the normal text I used in paragraphs to the text I used to name different sections). My ...
3
votes
4answers
116 views

How to write this kind of colour text in LaTeX?

I need to add following text to my latex document. currently I created some image and add it to document. I need to know some simple way to adding it as text , to my latest project. An additional ...
0
votes
1answer
64 views

Text running through the line

I am quite not sure how to create something like this: text across a line border on latex. Edit1: \begin{tcolorbox}[enhanced,title=My title, attach boxed title to top center={yshift*=-3mm}, boxed ...
0
votes
1answer
68 views

Text portion forced placement

I've been looking into this matter a lot, but I haven't found what I am looking for. Is there a command to force a portion of text (i.e. a whole paragraph) to a specific location in the document, e....
2
votes
1answer
35 views

Text manipulation with xstring failing: \@xs@StrRemoveBraces@@

Consider the following document: \documentclass{article} \usepackage{xstring} \makeatletter \newcommand{\mycommand@firstchar}[1]{% \StrRemoveBraces{#1}[\FirstChar]% \StrChar{\FirstChar}{1}[\...
1
vote
2answers
53 views

\reflectbox in \newenvironment

I have the following problem with the \reflectbox{} command used in a \newenvironment{}: It doesn't do anything. Here's my code: \documentclass[12pt, a4paper]{article} \usepackage[utf8]{inputenc} \...
0
votes
2answers
72 views

Wrap text in table

I'm trying to convert my CV (originally assembled in word) into a Latex file, largely as a learning exercise. I just wondered if someone could help me wrap text as in my current version certain pieces ...
1
vote
1answer
59 views

Help drawing as text a number from a formula (For instance [ 1-\thepage)*70+\i ] )

Googling I found that it is common that \lineno does not work properly around displaymath with the ifacconf.cls template. I am trying to improve a workaround I found for peer review reference. ...
1
vote
0answers
31 views

Two Flowing Frames per Page [closed]

I want to write a document where the history, geography, culture of a certain place is the main text. Together with that, I want to present a timeline of events but, rather than a separated topic or ...
0
votes
0answers
58 views

Alignment inside in-line $$ math environment [duplicate]

I would like to be able to use (equation) alignment inside a simple in-line $...$ environment. Of course, normally nobody does this, when this is properly done with the standalone equation ...
5
votes
2answers
197 views

How can i have text between brackets in equation with respect to some criterion?

I try to have something close to that Here is my try, \begin{equation} \begin{array}{cccc} \partial_t C & + \partial_x u C + \partial_x v C = & D_x \partial_{xx} C + D_y \partial_{yy} C + &...
0
votes
0answers
35 views

How can I put text in the left margin using enumerate

I'd like to use\begin{enumerate} to create a list of numbered problems, but I want to place text to left of the numeral, in the margin, like this: Any suggestions?
1
vote
1answer
1k views

How to add a superscript in text mode

I'm writing about C* algebras and I'm trying to write *-strings efficiently. I managed to define C* like this: \newcommand{\Cstar}{C\textsuperscript{*}} While I have to invoke it as \Cstar{} to ...
1
vote
1answer
143 views

A way to use textbf and textit at the same time with one command

Hello I have to make a document where I use a lot \textbf and \textit at the same time, so I tried to create a new command where it use both at the same time, but it gave me an error and I don't know ...
0
votes
1answer
372 views

\rightsquigarrow with the text above and below it [duplicate]

is it possible to write a text above and below the \rightsquigarrow? I am trying \xrightsquigarrow[\text{b}]{\text{a}}, but it is not working.
4
votes
1answer
469 views

How to add multi-line text below a node in a tree in forest

I want to make a tree which has bulleted lists centered below the child nodes, like so: I've searched on TeX SE and found questions which describe putting labels below nodes, but it doesn't quite ...
6
votes
4answers
640 views

Make blocks of text invisible only if said so

Is there any command which allows me to make some blocks of text invisible only if initially I said so? I.e., I would like to mark some lines throughout the text that would only appear in the ...
0
votes
2answers
222 views

problem with text formatting \ itemize

I looked for a command to improve the equation item and I met this one. \usepackage{amsmath} newcommand{\itemEq}[1]{% \begingroup% \setlength{\abovedisplayskip}{0pt}% \...
3
votes
1answer
78 views

Make text fall of a line

As a joke in a songbook I'm editing I want to make a phrase "fall of the line", letter by letter. I do remember a long time ago to have seen something like this in WikiBooks but can't find it again. ...
0
votes
1answer
331 views

Disable word break

How can I disable word breaks in the whole document? I don't want any of my words broken and hyphenated across 2 lines. I have tried to use the package: \usepackage[none]{hyphenat} But then my ...
3
votes
1answer
158 views

How to emulate this page style from the comic book Watchmen?

Basically, I want to create a page so that it looks like a "photograph" of a piece of paper (with text) over another piece of paper (also with text). Is this possible in LaTeX? If yes how? I have no ...
0
votes
2answers
101 views

problems with margins in textual minipages

I'm writing a restaurant menu and i have problems with the left margins of this page, in particular in the paragraph 'Wine'. If I omit \vfill, the code overlaps the two paragraphs but it puts them ...
0
votes
1answer
385 views

Placing a Text over another Text in Beamer

How can I place a text on top of another text in beamer? I want something like this but over text while the original text becomes transparent.
0
votes
1answer
166 views

A Single Command for Combining Text and Math?

I'm trying to add units to some quantities for my physics homework. Here's what I want: Normal Text Math Commands Allowed All Bold One command to accomplish the above For example, if I want to write ...
4
votes
2answers
372 views

Truncating multi-line text

We can use the truncate package to truncate a piece of text so that it fits e.g. in a 5cm wide box. However, the package can only handle one line of text. What if I have got a (possibly long) text ...
2
votes
1answer
142 views

Top & middle left alignment of text inside cell

How make top left alignment (yellow rectangle) and middle left alignment (red rectangle) of text inside cell? I've tried a lot different options, I think alignment should be specified directly in ...
2
votes
1answer
68 views

Fontsize for text vs. math

Disclaimer: I am new to Latex, I apologize for the lack of specific and correct vocabulary to describe my question. I am building an equation sheet and have a question about font sizes. I would ...
5
votes
2answers
1k views

Top-Align Text in TikZ Node

I want the heading ("Meldebogen", "Anklage", "Beweisaufnahme", "Urteil") all on the same vertical height regardless of the content. I figured that simply top-aligning the text in every node would do ...
2
votes
1answer
83 views

Latex reformat text structure

Say I have a file of abbreivations.txt &Estimated &Time of &Arrival &North, &East, &West, &South &Special &Weapons &And &Tactics &W&ireless &F&...
1
vote
0answers
50 views

Software to check grammatical errors in Latex text [duplicate]

Is there any software, like Grammarly, that enables one to check the grammar in the text while using latex. The problem with using Grammarly is that with formulas and mathematical notation, it becomes ...
0
votes
1answer
64 views

How to selectively delete inner and outer parentheses simultaneously?

For example I want to retain only the content inside \text so that \[ \text{v} = \text{w} \] becomes \[ v = w \] How does one do this if there are hundreds of instances of \text{..} and I want ...
0
votes
1answer
100 views

Centre heading in 2 by 2 table

In my 2 by 2 table, I would like to position the headings 'Ashley' and Matt' so they are always centred with respect to the text adjacent columns. I have included a picture of the ideal position (red ...
1
vote
1answer
133 views

Tables containing lots of text

I would like to create a table for a large amount of text, following the style shown in the picture 1 (below). I have attempted to do this using tabularx but with little success. I have tried to ...
0
votes
2answers
125 views

latex text manipulation of \ref ouput

For some reason I need to manipulate the output of the \ref command to match the patter of four digits without dots. For example: \title{A Very Simple \LaTeXe{} Template} \documentclass[12pt]{article}...
7
votes
2answers
1k views

How to encircle a character inside a Latex formula?

I would like to encircle one character inside a LaTeX formula. An example is $f_1 = ...$ or $f_k = ...$, where I want to encircle the characters 1 and k. I've found some questions (question 1, ...
1
vote
1answer
192 views

How can I remove a section from tex file by it's name?

I have some tex file (e.g. malloc.tex) those contain some sectionss(section of manpages). From there I want to remove the COLOPHON section, because this is not actually man section. And as I merge all ...
1
vote
2answers
132 views

How to continue text in next line in framebox?

I have written text in the framebox but it does not continue in the next line rather it keeps on adding the next in the same line and the resulting text is outside the box. \documentclass[12pt]{...
2
votes
2answers
479 views

Problems with column width and text alignment using siunitx

I have problems with formatting a large table with summary statistics of variables. My variables have long names, which I would like to keep, but if there is no way, I can make shortcuts of their ...
6
votes
5answers
950 views

How to draw this Venn Diagram using PSTricks?

The code I wrote for it is - \documentclass{article} \usepackage{amsmath} \usepackage{pstricks} \usepackage{auto-pst-pdf} \usepackage{pst-node,pst-plot} \begin{document} \begin{pspicture}(-6,-6)(6,6) ...
2
votes
3answers
353 views

String multiplication possible in LaTeX as in Python?

I'd like to set a string multiplication in LaTeX in order to print n times a specific string or character. Just like in Python one would do : print('mystring' * 3) to get mystringmystringmystring. ...
0
votes
1answer
449 views

How to make a new environment be verbatim inside \scalebox with listings package?

After @JPi answer on How to use \scalebox around my environment? and comment pointing to the question Verbatim in environ’s \BODY I tried: Writing the contents to a file Print it on verbatim mode, ...
0
votes
1answer
341 views

How to rename the comment or verbatim environment?

Based on the question How to rename or "copy" a latex environment I am tried to rename the comment environment to myenvironment: \documentclass[10pt,a5paper,twoside]{memoir} \usepackage[T1]...
3
votes
2answers
3k views

How to use \scalebox around my environment?

I tried putting scalebox{.2} while defining my new environment, but it is not being applied: \documentclass[10pt,a5paper,twoside]{memoir} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \...
2
votes
1answer
314 views

Replacing a substring from a command

I have a problem where I seem to be unable to replace a string that is the output of a command. In my document I call the \outerfunction with an argument that is actually a list of key/value pairs. (...