I`m creating the rendering images (with a formulas) script for the web site, which is based on texlive. I have found that there is a security vulnerability.
For example, using the commands \include \input \openin \read \openout \write a user can embed in the document that is processed on the server ...
Search found 9 matches
- Fri Aug 05, 2016 9:16 am
- Forum: General
- Topic: Hacking with LaTeX! How to protect?
- Replies: 2
- Views: 9051
- Wed Apr 15, 2015 9:39 pm
- Forum: Fonts & Character Sets
- Topic: Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
- Replies: 10
- Views: 15964
Re: Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadab
I tried to run the latex through ssh as a normal user myusername and it worked properly. Hence the problem was that the latex is called through php, who works as a module of Apache. What is the cause of the error? How to fix?
- Wed Apr 15, 2015 8:08 pm
- Forum: Fonts & Character Sets
- Topic: Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
- Replies: 10
- Views: 15964
Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
Do you still mean the same error as at the beginning of this topic? Yes of course. The same bug with missing fonts.
So it's just a user issue? Apparently, this is a problem of user access.
Permissions shout not be a problem during compiling.
You mean the compilation tex-document? I did not ...
So it's just a user issue? Apparently, this is a problem of user access.
Permissions shout not be a problem during compiling.
You mean the compilation tex-document? I did not ...
- Wed Apr 15, 2015 7:41 pm
- Forum: Fonts & Character Sets
- Topic: Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
- Replies: 10
- Views: 15964
Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
Recently I tried to run the program through ssh as root and it worked properly!
What permissions are missing?
I'm calling the program latex as myusername (no root) on php by function proc_open(). The php runs as an Apache module.
I checked the /usr #find -mtime -1 -print . No recently modified ...
What permissions are missing?
I'm calling the program latex as myusername (no root) on php by function proc_open(). The php runs as an Apache module.
I checked the /usr #find -mtime -1 -print . No recently modified ...
- Sun Apr 12, 2015 8:14 pm
- Forum: Math & Science
- Topic: How to set a default alignment in math blocks?
- Replies: 4
- Views: 7004
How to set a default alignment in math blocks?
As you mean in "math text blocks", you could use \raggedright for the text which affects inline math too. For displayed math, you could use the fleqn option (flush left equations). I noticed, you tried the flushleft environment, which is similar to \raggedright. I already tried to use \RaggedLeft ...
- Sun Apr 12, 2015 6:10 am
- Forum: Math & Science
- Topic: How to set a default alignment in math blocks?
- Replies: 4
- Views: 7004
How to set a default alignment in math blocks?
There is such a code:
\begin{document}
\begin{preview}
$\frac{(1+mx)^n-(1+nx)^m}{x^2} = \frac{x^2\left( (\dots)x+ \frac{mn(n-m)}{2} \right)}{x^2} = \left( (\dots)x+ \frac{mn(n-m)}{2}\right) =\frac{mn(n-m)}{2}.$
\end{preview}
\end{document}
The result:
http://f6.s.qip.ru/f35S7e0A.png
As seen ...
\begin{document}
\begin{preview}
$\frac{(1+mx)^n-(1+nx)^m}{x^2} = \frac{x^2\left( (\dots)x+ \frac{mn(n-m)}{2} \right)}{x^2} = \left( (\dots)x+ \frac{mn(n-m)}{2}\right) =\frac{mn(n-m)}{2}.$
\end{preview}
\end{document}
The result:
http://f6.s.qip.ru/f35S7e0A.png
As seen ...
- Thu Apr 02, 2015 8:22 pm
- Forum: Fonts & Character Sets
- Topic: Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
- Replies: 10
- Views: 15964
Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
Thank you for your response.
~# apt-get install lmodern
Reading package lists... Done
Building dependency tree
Reading state information... Done
lmodern is already the newest version.
lmodern set to manually installed.
The following package was automatically installed and is no longer required ...
~# apt-get install lmodern
Reading package lists... Done
Building dependency tree
Reading state information... Done
lmodern is already the newest version.
lmodern set to manually installed.
The following package was automatically installed and is no longer required ...
- Thu Apr 02, 2015 4:12 pm
- Forum: Fonts & Character Sets
- Topic: Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
- Replies: 10
- Views: 15964
Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
Try loading lmodern as well.
\usepackage{lmodern}
Where should I download lmodern? I need to install it?
I have installed on Debian package texlive-full wheezy.
Tried so:
\documentclass[12pt]{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage ...
\usepackage{lmodern}
Where should I download lmodern? I need to install it?
I have installed on Debian package texlive-full wheezy.
Tried so:
\documentclass[12pt]{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage ...
- Thu Apr 02, 2015 3:39 pm
- Forum: Fonts & Character Sets
- Topic: Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
- Replies: 10
- Views: 15964
Error: Font T2A/cmr/m/n/12=larm1200 at 12.0pt not loadable
Hello everyone. Sorry for my bad english.
I installed Texlive on Debian 7. I tried to convert tex file to dvi by latex. The tex file has the following preamble:
\documentclass[12pt]{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[english, russian ...
I installed Texlive on Debian 7. I tried to convert tex file to dvi by latex. The tex file has the following preamble:
\documentclass[12pt]{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[english, russian ...