Script to add backslashes to end of certain lines of text
I'd like to write up notes in a relatively readable format and then use a shell script to add LaTeX formatting. Specifically, I'm trying to figure out how to add the LaTeX newline character (\\) to the end of lines without \begin{} or \end{} statements
example notes file:
\begin{enumerate}
-- first note
\begin{itemize}
-- first sub-note that spans multiple lines
so new line characters would be really nice
otherwise this gets a bit hard to read
-- second sub-note
\end{itemize}
(lather, rise, repeat)
\end{enumerate}
So far I am using sed to change -- to \item and then using a LaTeX wrapper file to add header info and pdf it:
Can someone tell me how to add \\ to only the text lines (that is, all lines without \begin{} or \end{})?
Thanks!
Hi Guys, :D
I am very much new to UNIX. I dont have much basics of coding in UNIX, so please help me out of thi ssituation.
I have a file say for ex: ABC.dtd and it contains "|" delimited data as
test1|testing|test3|moving
past1|runing|test4|going
I need to add a column at the end... (6 Replies)
Hi,
I assume there is a simple solution, but as usual i can't find it!
How can i add a line of text to the end of a text file on a new line?
i.e
file.txt
________________
this is my text file
________________
file.txt
________________
this is my text file
WITH A NEW LINE... (6 Replies)
I'm new to shell scripting, and need to add a series of commands to the ends of certain lines of text that contain a keyword. Any easy way to do this? Thanks (2 Replies)
hello,
I go text file like this
E:/DDD/Dyndede/wwww
E:/DDD/sss.com/ffffg/fff
E:/DDD/vvvvvv/dd
E:/DDD/sss.com/bbbbbb
E:/DDD/sss.com/nnnn/xxI want to print
/alpha.jpg at the end of every lines like that
E:/DDD/Dyndede/wwww/alpha.jpg
E:/DDD/sss.com/ffffg/fff/alpha.jpg... (8 Replies)
Hi,
I've spent some time researching for this but can't seem to find a solution. I have a file like this
1234|Test|20101111|18:00|19:00There will be multiple lines in the file with the same kind of format. For every line I need to make it this
1234|Test|20101111|18:00|19:00||create... (5 Replies)
Hello All,
this is my first post so I don't know if I am doing this right.
I would like to append entries from a series of strings (contained in a text file) consecutively at the end of specifically labeled lines in another file.
As an example:
- the file that contains the values to be... (3 Replies)
I have a log file which lists groups and users in the following format
GROUP1
user1
user2
user3
GROUP2
user4
user5
user6
GROUP3
user7
user8
I need to change the format to:
user1|GROUP1
user2|GROUP1
user3|GROUP1
user4|GROUP2 (3 Replies)
Seems simple but ive been searching for a good hour of so
I have a text file and would like to add a string to the end of line 5 ( as an example)
to ake tings hard the line number we have to add the text to is stored in a variable cunningly name $Line_to_append
any ideas on how this could... (2 Replies)
I have a file similar to the below. I am selecting only the paragraphs with @inlineifset.
I am using the following command
sed '/@inlineifset/,/^ *$/!d;
s/@inlineifset{mrg, @btpar{@//' $flnm >> $ofln
This produces
@section Correlations between
seismograms,,,,}}
... (5 Replies)
Discussion started by: Danette
5 Replies
LEARN ABOUT CENTOS
latex
LATEX(1) General Commands Manual LATEX(1)NAME
latex, elatex, lambda, pdflatex - structured text formatting and typesetting
SYNOPSIS
latex [first-line]
DESCRIPTION
This manual page is not meant to be exhaustive. The complete documentation for this version of TeX can be found in the info file or manual
Web2C: A TeX implementation.
The LaTeX language is described in the book LaTeX - A Document Preparation System. LaTeX is a TeX macro package, not a modification to the
TeX source program, so all the capabilities described in tex(1) are present.
The LaTeX macros encourage writers to think about the content of their documents, rather than the form. The ideal, very difficult to real-
ize, is to have no formatting commands (like ``switch to italic'' or ``skip 2 picas'') in the document at all; instead, everything is done
by specific markup instructions: ``emphasize'', ``start a section''.
The primary source of documentation for LaTeX is the LaTeX manual referenced below, and the local guide in the file local-guide.tex or
local.tex or some such.
elatex is the e-TeX extended mode version of LaTeX format.
lambda is the Omega version of the LaTeX format.
pdflatex is the pdfTeX version of the LaTeX format.
On some systems latex209 and slitex are available for compatibility with older versions of LaTeX. These should not be used for new texts.
SEE ALSO amslatex(1), amstex(1), pdflatex(1), pdftex(1), tex(1).
Leslie Lamport, LaTeX - A Document Preparation System, Addison-Wesley, 1985, ISBN 020115790X.
Frank Mittelbach, Michel Goossens, Johannes Braams, David Carlisle, and Chris Rowley, LaTeX Companion, Addison-Wesley, 2004, ISBN
0201362996 (2nd edition).
LaTeX Graphics Companion, available as part of a boxed set: The LaTeX Companions, Revised Boxed Set : A Complete Guide and Reference for
Preparing, Illustrating, and Publishing Technical Documents (2nd Edition), by Frank Mittelbach, Michel Goossens, Sebastian Rahtz, Helmut
Kopka, Patrick W. Daly (Addison-Wesley, 2004, ISBN 0321269446).
Web2C 2012 14 May 2010 LATEX(1)