Programming :: Insert Graphics Into Latex File?
May 30, 2011
I want to insert graphics into latex file, for longtime I used xfig to create graphs, but it is limited,specially for math formulas, dia i find not easy to use.Finally I want to try asymptote or tikz which one is more appropriate
View 1 Replies
ADVERTISEMENT
Aug 17, 2010
I want to create multiple documents from within one file. Example:
Code:
documentclass{report}
preamble
[code]....
View 5 Replies
View Related
Jul 2, 2010
i have two files with thousands of line, I am trying to combine these two files but i want to insert each line of one file to the another file after certain lines. I am using awk with the following command but it does not work.cat file1 | awk ' { print $0; if (NR%3004==0) {print "file2"}}' > outputfile
View 14 Replies
View Related
Jul 15, 2010
I have following file workers file: There are 800 entries like this.
# consensus/uat
worker.consensus-uat1.host=lonlx10409
worker.consensus-uat1.port=13702
worker.consensus-uat1.type=ajp13
[code]....
I want to insert one line just below the line starting with "woker.list". I think sed can do it but I am not aware.
View 14 Replies
View Related
Jun 11, 2009
I want to read from the file and check for the pattern, if the line has some word like <string>: then string should be copied into buffer. Afterwards, I want to insert the same <string> with some word in the next line of the file. use sed command to perform the above mentioned operations?
View 2 Replies
View Related
Jun 10, 2010
I have multiple HTML files in a folder. there is a <h2> tag like this:
Code:
<h2>some text</h2>
in each file. I want to write a shell script/batch file to add this tag in <head> section of each file:
Code:
<!-- TITLE= "same text from h2 tag" -->
Note that <h2>some text</h2> in some files has 1 or more linebreaks and so I couldn't capture tag content using a simple grep or...
for example:
<h2>first part of text
second line of text</h2>
The line break shouldn't be shown in <!-- TITLE= "same text from h2 tag" -->. The script has to capture tag content & skip line breaks.
View 3 Replies
View Related
Oct 16, 2010
As indicated in the subject, I want to search a text. If the text is present I want to replace it. But if the text is not present, I want to insert it after first line and before last line.
Searched text is:CleanCache "*";
Where * can be anything.
Example: CleanCache "false"; -> CleanCache "true";
If CleanCache "false"; is not present, only insert CleanCache "true"; after first line and before last line.
View 8 Replies
View Related
May 18, 2011
i want to insert message contain "!?><$%" to variable or file. This is the line i use
kk = gogo
message = "Hi! ?%$&*@"
echo $kk "$message" >! /tmp/.kk_user
View 14 Replies
View Related
Jul 5, 2010
I am a semi-noob on this and I have problems getting my emacs recognizing .tex as latex and even running latex-mode. Usually when you run latex-mode (M-x : latex-mode) emacs should switch to latex-mode, but nothing happens in my case. The menu bar still show the TeX options, highlighting remains the same etc.
I am running emacs 23.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4), this is on a university system so I don't know much about it.
> uname -a
Linux karakum 2.6.18-164.11.1.el5 #1 SMP Wed Jan 20 00:57:09 EST 2010 x86_64 x86_64 x86_64 GNU/Linux.
View 12 Replies
View Related
Aug 19, 2010
I am new to ubuntu.I have done some programming in c++ under windows using graphics.h header file.I want to implement my programs in ubuntu.How can i do this?I am writing a program.
View 4 Replies
View Related
Jan 13, 2010
I need to run a command in a shell script to insert a line in a file, after it finds certain line. To add the line 'user = mysql' after the line [mysqld] in file /etc/my.cnf
View 3 Replies
View Related
Jun 28, 2009
I have some strange behavior in Latex. I have added labels to all of my tables (currently there are 3) and my figure (currently there is only 1). So far I only notice this behavior with tables, though it may happen with figures as well...I will have to add another figure to test that.However, what is happening is that my list of tables is correctly generating the numbers of the tables (which are 3.1, 3.2, and 4.1). In the resulting PDF document, the tables have the correct numbers in the captions as well. The odd thing is that when I attempt to reference them using ef, it is printing the Chapter.Section[.Subsection] number the table is located in instead of the table's number itself.Right now I have two tables inside of Chapter 3 Section 3. They are as follows:
Code:
egin{table}[htdp]
egin{center}
[code]....
View 3 Replies
View Related
May 6, 2011
Is there any method for placing translations in parenthesis at first occurrence? I need something similar to the acronym package, but instead, storing translations and printing brackets only after the first occurrence.
E.g. (pseudo-code):
Results in:
Do you like to eat bananas (xiangjiao)? No I don't like to eat bananas.
View 4 Replies
View Related
Sep 17, 2009
I'm looking for a way to insert the number of lines in a file to the start of the aformentioned file. This should be simple but as I am not used to scripts in Linux, I am finding it tough going. I can find the number of lines in a file easily enough via
filesize=$(awk 'END {print NR}' $1)
but as for inserting this into the first line, i'm failing to do so. I've tried some of the other approaches on these forums but none so far have been able to do so.
I've tried:
sed '1i$filesize' $1
but sed i requires a string, not a variable so no go I've also tried:
mv "$1" "${1}.bak" 2>/dev/null || touch "${1}.bak"
cat $filesize "${1}.bak" >"$1"
but again with no luck as cat seems to need an input stream Just to recap, i want to insert a line at the start of a given file that holds the number of lines the original file has.
ie the file:
a
b
c
d
e
should become:
5
a
b
c
[code].....
View 3 Replies
View Related
Feb 5, 2011
I'm having trouble opening a pptx (powerpoint tex ie tex as in latex) file with LibreOffice. For the most part, LibreOffice opens the pptx file fine except for the fact that it is not translating certain mathematical symbols right. I really need to be able to open pptx files as many mathematicians are windows users. I figure there is a package or something I need to install but I don't know what it is.....
View 2 Replies
View Related
Feb 2, 2011
i have installed ubuntu using WUBI, and it was working for the last 4 months. today i was trying to install lineno.sty file for latex files; using synaptic. while installing it some error message related to grub came and after the downloading was finish the system asked for rebooting. when i reboot the system it has gone to grub rescue mode. i have so many files saved in the ubuntu partition, i don't want to loose it.
View 9 Replies
View Related
Oct 5, 2009
I am creating a document using Latex and I am using the existing article class "documentclass[twocolumn]{article}" The paper needs to have a two column format, but I have figures that I would like to include in a landscape orientation, possibly on a new page, (they appear too small even if I have them span either 1 or both columns).
View 1 Replies
View Related
Mar 30, 2011
What is the preferred method for obtaining Harvard style referencing in a LaTeX document?
View 1 Replies
View Related
Apr 5, 2010
Have searched around the web and here but can't find what package to load to solve the problem. Running 9.10
View 4 Replies
View Related
Aug 3, 2010
When I install the texlive packages (LaTeX installation) in Mint 9 (= Ubuntu 10.04), the pdflatex module is not installed. Yet it's required for producing pdf files from LaTeX editors, for example jEdit with the LaTeX Tools plug-in. pdflatex is not in the Mint/Ubuntu repos.
View 3 Replies
View Related
Aug 25, 2011
If i compile my.tex file using the command:latex my.tex I am getting this error:! LaTeX Error: File `pause.sty' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: sty)
View 1 Replies
View Related
May 21, 2010
I have a file like this:
Code:
/opt/local/some/dir/
blablablabiugfyugf
[code]....
View 10 Replies
View Related
Feb 2, 2011
I'm just texing a little report and I get the following error message: LaTeX Warning: Citation 'tzvp' on page 4 undefined on input line 74 I have made a bibliography in the classic way, i.e.
[Code]....
View 2 Replies
View Related
May 17, 2011
how to insert $2 argument until the end to variable?For example:
>> cucu.csh user "long long message "
$1 = user
$2 = "long long message "
View 10 Replies
View Related
Dec 13, 2010
Following is the declaration:
Code:
std :: map <QString, std :: vector <std :: pair <QString, QString> > > configFileDataVector; How should I insert data in it? All the examples which I have looked up in Google are of plain maps!
I tried this, but it failed:
[Code]...
View 4 Replies
View Related
Jul 25, 2011
I have a string as below
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
Want the above string to be modified as
LogFormat "%h %l %u %D %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
inserting %D after %u in the string
View 3 Replies
View Related
Jul 26, 2011
I want to copy below content to a file after line 200.
Alias /A/ "/A/B/C/D/"
<Directory "/E/F/G/H/">
Options Indexes MultiViews
AllowOverride None
[Code]....
Or is it possible if I can copy this content in some other file and insert to the main file.
View 4 Replies
View Related
Jul 12, 2011
When i enter this query to mysql:
Code:
return this error:
Code:
when i delete the insert part :
Code:
query is ok:
Code:
1 row in set (0.00 sec)
View 2 Replies
View Related
Feb 24, 2011
I have the following file.
B0 49.2230869 -102.5743868
C 1LPRK 654.90
C 1PREU 3693.90
C 1JRSU 3693.90
[code]....
I need to insert text ABCDEF starting at position 26 if a line starts with C. I need it to look like:
C 1VKNG ABCDEF 3097.00
C 1JLFU ABCDEF 3157.20
C 1MNVL ABCDEF 3346.10
I would prefer to use sed to do this and not perl.
View 14 Replies
View Related
Nov 15, 2010
My problem is to insert one sign like space or ':' into a line or string.The goal is to get a demiliter for `cut`.I tried to do it with `tr A-Z "'A '-'Z '" and such but without success.I guess a while read loop could do it but I don't know howto use it with ` expr length $STR`
View 5 Replies
View Related