9 More Discussions You Might Find Interesting
1. What is on Your Mind?
Hard to imagine that in the two decades of its existence this product once ruled supreme, but the news is finally there:
RIP Internet Explorer: Twitter mourns and mocks death of Microsoft (0 Replies)
Discussion started by: figaro
0 Replies
2. OS X (Apple)
I was editing a file with vi and crashed so when I opened the file again I had the .swp file to deal with. I made the wrong choice trying to recover my file and wound up with a file with no eol (end of line) characters.
I have forgotten the code to substitute and don't want to make an even... (2 Replies)
Discussion started by: gale
2 Replies
3. AIX
The only way I know of is manually as follows:
To remove for example ^M from a file:
- vi the file name that has ^M at the end of each line.
- Hit <Esc>
- Type :g/
- Hold the CNTRL key and press V and M then release the CNTRL key At the buttom you should see this by now: ... (3 Replies)
Discussion started by: mrn6430
3 Replies
4. Linux
How can I insert End of line (EOL) in Unix to file. Thanks (5 Replies)
Discussion started by: mrn6430
5 Replies
5. Shell Programming and Scripting
Hi,
I have a text as below
test1 test2 test3\
test4 test5 test6 test7
newtest1 newtest2\
newtest3 newtest4 newtest5
And need this to be replaces to
test1 test2 test3 test4 test5 test6 test7
newtest1 newtest2 newtest3 newtest4 newtest5
So my requirement is to remove the EOL... (5 Replies)
Discussion started by: praveenbvarrier
5 Replies
6. Shell Programming and Scripting
How to remove special chracters @ END OF EACH LINE in a file
file1.txt:
0003073413^M
0003073351^M
0003073379^M
0003282724^M
0003323334^M
0003217159^M
0003102760^M
0002228911^M
I used the below command but it is not working ?
perl -pi -e 's/^M\/g' file1.txt (6 Replies)
Discussion started by: ali560045
6 Replies
7. Shell Programming and Scripting
Hello,
I am using the following script to read some log and then contruct my email for notification.
When I run this on my test server, i am getting the output as below,
But when I move to another server, the EOL seems to not affect,
should I use some setting so the output is... (1 Reply)
Discussion started by: cv_pan
1 Replies
8. UNIX and Linux Applications
I have lines in a file like this (140,000+ entries):
value1,
value2,
value3,
"
"
I want to concatenate the three (there are 22) lines with commas so it looks like this
value1, value2, value3
"
"
I'm trying with
:g/,$/s/,$/, /g
but that is not flying.
any ideas? (6 Replies)
Discussion started by: dbauhaus
6 Replies
9. Shell Programming and Scripting
Hi All,
I am new to shell scripting but have successfully created some of my own scripts using awk and sed. However, I have come across a problem that I cannot solve on my own and have not been able to find a good example that relates to what I am trying to do.
What I need is for the... (4 Replies)
Discussion started by: kixazz2529
4 Replies
SYNCTEX(5) BSD File Formats Manual SYNCTEX(5)
NAME
synctex -- Synchronize TeXnology help file
DESCRIPTION
Synchronize TeXnology help file (synctexs) are text files that help input/output synchronization during document preparation with the TeX
typesetting system.
BASICS
The structure of this file should not be considered public, in the sense that no one should need to parse its contents, except the synctex
command line utility, and the synctex_parser library. Unless it is absolutely not avoidable, access to the contents of the synctex file
should only be made through requests made to the synctex command line utility.
STRUCTURE
The element structure of a synctex file is a list of text line records as follows. '*', '+', and '?' have their usual EBNF meanings: '*'
means zero or more, '+' means one or more, and '?' means zero or one (i.e., optional).
<SyncTeX> ::= (The whole contents in 4 sections)
<Preamble>
<Content>
<Postamble>
<Post Scriptum>
Each section starts with the first occurrence of a sectioning line, and ends with the next section, if any. In the following definitions, we
do not mention the section ending condition.
The preamble
<Preamble> ::=
"SyncTeX Version:" <Version Number> <EOL>
<Input Line>*
"Magnification:" <TeX magnification> <EOL>
"Unit:" <unit in scaled point> <EOL>
"X Offset:" <horizontal offset in scaled point> <EOL>
"Y Offset:" <vertical offset in scaled point> <EOL>
<Input Line> ::= "Input:" <tag> ":" <File Name> <EOL>
The content
<Content> ::=
<byte offset record>
"Content:" <EOL>
<sheet(1)>
<Input Line>*
<sheet(2)>
<Input Line>*
...
<sheet(N)>
<Input Line>*
<byte offset record> ::= "!" <byte offset> <end of record>
<sheet(n)> ::=
<byte offset record>
"{" <the integer n> <end of record>/
<box content>*
<byte offset record>
"}" <the integer n> <end of record>
The <box content> describes what is inside a box. It is either a vertical or horizontal box, with some records related to glue, kern or math
nodes.
<box content> ::=
<vbox section>|<hbox section>
|<void vbox record>|<void hbox record>
|<current record>|<glue record>|<kern record>|<math record>
<vbox section> ::=
"[" <link> ":" <point> ":" <size> <end of record>
<box content>*
"]" <end of record>
<hbox section> ::=
( <link> ":" <point> ":" <size> <end of record>
<box content>*
")" <end of record>
Void boxes:
<void vbox record> ::= "v" <link> ":" <point> ":" <size> <end of record>
<void hbox record> ::= "h" <link> ":" <point> ":" <size> <end of record>
<size> ::= <Width> "," <Height> "," <Depth>
<Width> ::= <integer>
<Height> ::= <integer>
<Depth> ::= <integer>
<link> ::= <tag> "," <line>( "," <column>)?
<line> ::= <integer>
<column> ::= <integer>
The forthcoming records are basic one liners.
<current record> ::= "x" <link> ":" <point> <end of record>
<kern record> ::= "k" <link> ":" <point> ":" <Width> <end of record>
<glue record> ::= "g" <link> ":" <point> <end of record>
<math record> ::= "$" <link> ":" <point> <end of record>
The postamble
The postamble closes the file If there is no postamble, it means that the typesetting process did not end correctly.
<Postamble>::=
<byte offset record>
"Count:" <Number of records> <EOL>
The post scriptum
The post scriptum contains material possibly added by 3rd parties. It allows to append some transformation (shift and magnify). Typically,
one applies a dvi to pdf filter with offset options and magnification, then he appends the same options to the synctex file, for example
synctex update -o foo.pdf -m 0.486 -x 9472573sp -y 13.3dd source.dvi
<Post Scriptum>::=
<byte offset record>
"Post Scriptum:" <EOL>
"Magnification:" <number> <EOL> (Set additional magnification)
"X Offset:" <dimension> <EOL> (Set horizontal offset)
"Y Offset:" <dimension> <EOL> (Set vertical offset)
This second information will override the offset and magnification previously available in the preamble section. All the numbers are encoded
using the decimal representation with "C" locale.
USAGE
The <current record> is used to compute the visible size of hbox's. The byte offset is an implicit anchor to navigate the synctex file from
sheet to sheet.
Independant Mar 13, 2012 Independant