Programming :: Referencing In Latex Isn't Working?
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:
I am running into a small bit of difficulty with images I want to use in a Java program, keeping them bundled with the program in a JAR file and accessing them within the package.For those who are thinking it, this is definitely not homework.In my program, I have several images I would like to use on buttons on a toolbar.I have Googled, and I found something that comes close, but it deals with fetching images from a URL - nothing that deals with local files, more specifically, local images kept inside of a JARchive.
I've got a situation. I'm having GNU bash version 3.00.16(1) on Solaris 10. I need to declare an array say arr1 which will be populated by an output of a command.
declare -a arr1 arr1=( $(/some/command) )
Supposing it will eventually (after executing the command) have element values as -
arr1[0]=1234 arr1[1]=5678 arr1[2]=7890
Now, I need to declare another set of arrays, one for each of the element values above - e.g.
declare -a arr1_1234 declare -a arr1_5678 declare -a arr1_7890
And I also need to populate elements of each of above 3 arrays with output of another command in a loop. So, these arrays will hold values something like -
I'm able to declare and populate arr1[*]. My question is how do I declare, populate and print the subsequent arrays and their elements?I am feeling rather thick to get this working.
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.
I have a problem with compiling bibliography in Latex running on Debain Jessie. I have even tried to compile the stock example provided by ShareLatex web site, and it still doesn't work.I keep getting same error messages, when I run my own files AND the stock example:
I found no citation commands---while reading file document.aux I found no ibdata command---while reading file document.aux I found no ibstyle command---while reading file document.aux
I installed the vim-latex suite. Syntax colors are working great, but the autoindent feature is not working like it works for .html and .f90 files. My .vimrc file is, as far as I can see, correct:
Code: syntax on " REQUIRED. This makes vim invoke Latex-Suite when you open a tex file. filetype plugin on " IMPORTANT: win32 users will need to have 'shellslash' set so that latex " can be called correctly. set shellslash " IMPORTANT: grep will sometimes skip displaying the file name if you " search in a singe file. This will confuse Latex-Suite. Set your grep " program to always generate a file-name. set grepprg=grep -nH $* .....
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.
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
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).
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.
So after much intense reading of linux documentation and posts I can't find an answer to my question. Maybe someone can help.I am trying to access a kernel symbol that isn't exported (the symbol exists in /proc/kallsyms but not in Modules.symvers). Is there a non intrusive way (by avoiding compiling the kernel with CONFIG_KALLSYMS and parsing /proc/kallsyms in my LKM) to reference kernel symbols that are in /proc/kallsyms and not in Modules.symvers i.e. not exported symbols.
I have /home on its own partition.I reinstalled ubuntu Intrepid with a different user name.Now when I use F-Spot for instance i get a error "Could not open /home/olduser/.file".But how can i remove all references to /home/oldusername in all applications and point them to my current /home/username?
This is supposed to be possible right and better than naming each single cell?How do you do it?Also, maybe my approach is wrong as it's going to lead to a very big nested IF statement.There is a list of numbers which are price ceilings and another list of numbers containing the fees applied to these. I want to a formula that checks the item price against the ceilings and if it's less than or equal to that ceiling uses the fee in the adjacent row (which is the other data range).The only way I know how to do this is a big nested IF statement but does anyone know better?
I can reach other hosts by means of their global addresses by either the IP address or hostname (that has the global address). What I want to (also) do is have a hostname that references the IPv6 link local IP address (an AAAA record in DNS, or just the fe80::<whatever> address in /etc/hosts) and use that host name in commands to access that host. The problem is, an interface ID is needed when making such a reference.
It sure looks like the programs just pass the host name string on to the resolver library, which does not understand the significance of the '%' even though it could find and see that the name preceding the '%' is consistent with that being an IPv6 link local address (e.g. the logic could have been "split at first % and see if preceeding name is found as a link local address and accept that if so, or ignore the split otherwise" ... but it isn't). Is there a different syntax for this ... or was it overlooked in the design of programming around IPv6?I want to be able to address a host by its link local address, while still using a mnemonic instead of having to type the IPv6 address.
I always thought that Linux was immune to this sort of thing, but I've gotten an infestation of the Clicksor malware. When I bring up a page in Firefox from some websites (not this one, fortunately), it highlights words that it recognizes and then trots out a popup referencing that word and leading to a junk website. I've also had this problem in Chrome. How can I make that nasty beast go away?
Anyone have better documentation or an update to the this version of the file Tomcat HOWTO openSUSE as that document is referencing 10.2. Or a document for use with SLED.
I'm trying to install a .sty, .cls, and a .bst (bibtex) file for latex. I'm currently using texlive in Ubuntu 10.10. I have the general idea of where to install these but whenever I try to compile the .tex I get an error that says permission is denied to the .cls file, so I'm not sure what's going on.
I've ran the mktexlsr and everything else, but I still get this problem. If I run sudo pdflatex <filename> I wind up compiling a pdf document that I can't access. Not sure if I have to add permissions to the .sty and .cls files after they've been copied.
Additionally, the .sty and .cls files I'm using aren't in the official texlive distribution so I would definitely need to install them myself.
A few days ago there was a huge TexLive update. Since I've installed the updates I get following error, when running pdfLatex: Code: kpathsea: Running mktexfmt pdflatex.fmt So I guess it can't find pdflatex.fmt, but I don't know what to do against it.
Today I discovered a strange issue regarding LaTeX. I am currently working on my thesis and sometimes edit it on my laptop with F13 x86_64, and others with my office's Mac (Leopard). Fedora has TexLive installed (default Latex distribution) and I believe the Mac has its default distribution as well.
The problem is that the Mac seems to compile the document better (Latex + Bibtex + Latex + dvips + ps2pdf): page distribution looks better for one thing, space is better used. I notice that images (EPS) are rendered with an extra blank space on the bottom when compiling in Linux (which might be responsible for the page's arrangement).
Is there something I can do to fix this? Some option that perhaps the Mac has as a default but must be specified in Linux?
I need to write a document in japanese using Latex, but i'd like to know what are the steps to do it from scratch. I'm not so familiar with Latex and i really need some advices, especially regarding the packages for the language and all. What are the necessary programs to get? Packages? libraries?
I am using the Gedit LaTeX Plugin 0.2 rc3 on ubuntu 10.04 with gedit 2.30.3. The problem is that it will not make pdf files. I do have rubber installed.
Question how can I update latex packages is there any easy way to do it in linux, such as in windows (miktex for example).I have installed all the TeX-live packages on the ubuntu software center. But I seem to have outdated older packages.03156397135
I was trying to do a school assignment in LaTeX. The assignment involves having the page split into three columns: the first column is for the quote, the second is for a reaction, and the third is for questions. These columns must be able to break in the middle of a row. I was trying to accomplish this using LaTeX.
First, I tried the longtable environment, but that would not allow me to pagebreak in the middle of a row. Then, I tried parcolumns, but for some reason, the second "row" had a huge space between the first two words. Does anyone know of an environment suitable for this kind of work?
I'm using ubuntu and I'd like to write latex documents. In windows, I was using miktex and texniccenter, but I think these softwares don't work on linux. What are the best softwares in linux to write latex documents, and how to install them ?