186 reputation
16
bio website sasq.programuj.com
location Earth, TX
age 31
visits member for 1 year, 10 months
seen Jul 19 '13 at 11:16

Aug
30
awarded  Notable Question
Jun
25
awarded  Popular Question
Jan
1
awarded  Nice Question
Dec
29
comment Color box with rounded corners around a fragment of a formula
Yes I do need PNG conversion, because this is supposed to be my target output format. I use TeX as a kind-of compiler of equation images from plain-text source codes. I export to DVI first, and then I use dvipng to quickly convert it to an image with a desired DPI resolution. And it worked quite well for simpler formulas. But I stucked on those highlight boxes with round corners. Your method with hf-tikz appears to work, but when I export to DVI, I see those boxes offset out of their places. In PDF they seem OK (strange). And when I convert DVI->PNG, they disappear at all. VERY strange!
Dec
28
comment Color box with rounded corners around a fragment of a formula
I didn't have to configure, but I did have to run texhash command to rehash the packages database.
Dec
28
comment Color box with rounded corners around a fragment of a formula
OK, I figured out how to install those packages. It required to run texhash afterwards. It compiles your code sample without errors, but then in the DVI file all those boxes are offset in wrong places, and they're not antialiased :-/ And when I try to convert them to PNG image (which I ultimately need), the boxes disappear completely. WHAT A MESS! ;-/
Dec
28
comment Color box with rounded corners around a fragment of a formula
As to the coordinates: This sounds very hacky anyway, because whenever I'll update something in the formula, I'll be required to update those coords I guess, which is not much an advantage over editting the image in GIMP anyway. Better solution would just mark which block of text needs to be surrounded by the box and update the size of the box automatically when I edit its content.
Dec
28
comment Color box with rounded corners around a fragment of a formula
I tried to add those files to a subdir into my texlive installation (/usr/share/texmf-dist/tex/latex) but it still doesn't see them. Do I need to edit some config files to let LaTeX know about them?
Dec
28
awarded  Commentator
Dec
28
comment Color box with rounded corners around a fragment of a formula
I added those files from CTAN to my installation in a subdir, but LaTeX still doesn't see them. Do I need also to edit some config files?
Dec
28
comment Color box with rounded corners around a fragment of a formula
I just wanted to add some boxy backgrounds, and now I have so many different options to choose, most of them not working at all, and some of them needing fiddling with my installation :-( The code to get it is a mess, I don't understand any single bit of it, and I cannot find any documentation on the Tikz's project page. All of this overwhelms me :-/ and seem to be lot more work than what I was doing so far with re-editing images of those formulas in GIMP, instead of simplifying things. So I'll probably be forced to revert to my old approach :-/ But thanks for all your help anyway.
Dec
28
comment Color box with rounded corners around a fragment of a formula
This looks closest to what I want to achieve. But I don't understand your code at all (what does all those numbers mean?). And it doesn't work with my texlive installation because of missing hf-tikz.sty file (I don't know how to install it correctly under Gentoo without breaking anything in my package manager when messing with the files by hand).
Dec
28
comment Color box with rounded corners around a fragment of a formula
OK, I see your changes. Re-entering the math mode solved this parsing problem for \frac. Now I have this box with pink background under my fraction. Closer to what I need. Now what's left is: rounded corners (not for frame, as with your ovalbox examples above, though it'd be probably good to have both background and frame formatting options together in future projects) and paddings/margins (now it seems a bit too crowded for me).
Dec
28
comment Color box with rounded corners around a fragment of a formula
It also doesn't seem to work for my installation (texlive on Gentoo). It says that the package couldn't be found (! LaTeX Error: File mdframed.sty' not found`), and for now I don't know how to install it. Although I'm not a noob in the LaTeX syntax, I'm a complete noob in the maintaining own installation, packages & use those extensions in my code. I couldn't find any good documentations for the packages you're describing here.
Dec
28
awarded  Editor
Dec
28
comment Color box with rounded corners around a fragment of a formula
@tohecz: I added a picture of what I'd like to get in my question, and a sample of code using fancybox which doesn't work.
Dec
28
revised Color box with rounded corners around a fragment of a formula
Added code and expected effect.
Dec
28
comment Color box with rounded corners around a fragment of a formula
Another problem: It seems to forget that it's in a math mode, because fonts are big and not italic for variables. Also, I cannot use \frac inside of it, because it throws parse errors concerning unpaired braces. Strange...
Dec
28
awarded  Student
Dec
28
comment Color box with rounded corners around a fragment of a formula
But from some strange reasons, it doesn't work with my LaTeX framework (LiveTex on Gentoo). It says that it cannot recognize my defined color (! LaTeX Error: Undefined color `MySubst!20'). This color is defined and it works for other things.