luc.maranget | 17 Jun 17:04
Picon
Picon
Favicon

Re: [heveau] custom float and autoref support

Hi,

I am quite overwhelmed by work at the moment. Hence the delay.

> Hi,
> I'm wondering of custom floats can be supported by hevea.
> To generate a custom float for listings it is only necessary to write on
> Latex:
>   \floatstyle{boxed}
>   \newfloat{listings}{thp}{lst}
>   \floatname{listings}{Listing}
> This seams not to be recognized by hevea.
This should ne rather easy, do you have a package name in mind?
I need to read its documentation.

> 
> Also the package hyperref provides \autoref which works like \ref with
> the advantage that it does not only provide a reference number.
> For example \autoref{sec:tt} generates 'Chapter 3'.
> \autoref works with section, chapter and floats.
> Would it be possible to add the support for this macro?

Hum, looks more involved, since it probably implies altering
hevea sectionning commands (or adding a general hook to them)...
> 
> Best regards,
> Sébastien Fricker 

--

-- 
Luc
(Continue reading)

sebastien_fricker | 3 Jun 14:05
Picon
Favicon

[heveau] custom float and autoref support

Hi,
I'm wondering of custom floats can be supported by hevea.
To generate a custom float for listings it is only necessary to write on
Latex:
  \floatstyle{boxed}
  \newfloat{listings}{thp}{lst}
  \floatname{listings}{Listing}
This seams not to be recognized by hevea.

Also the package hyperref provides \autoref which works like \ref with
the advantage that it does not only provide a reference number.
For example \autoref{sec:tt} generates 'Chapter 3'.
\autoref works with section, chapter and floats.
Would it be possible to add the support for this macro?

Best regards,
Sébastien Fricker 
--

-- 
Sébastien Fricker

Andrej Bauer | 27 Apr 11:41
Gravatar

[heveau] CSS-based translation

Dear Hevea-list,

I have used hevea in the past to experiment with LaTeX->HTML
conversion, but this time around I am looking at ways to generate
e-book documents from LaTeX. A most promising way seems to be a
combination of hevea and calibre (via the ebook-convert utility):

LaTeX --hevea--> HTML --ebook-convert--> EPUB

This works pretty well right out of the box, except for:

1. xypic images need to be larger (easily fixed with a suitable imagen
incantation)
2. hevea hard-codes colors for \mathcal, \mathsf, etc.
3. Weird stuff happens with some displayed equations, I need to figure it out.

Anyhow, I have one question and one suggestion.

The question: what is the easiest way to prevent hevea from using
color? Should I just redefine \mathcal and \mathsf?

The suggestions: it would be really great if hevea used CSS-based
HTML, so instead of things like <I> <EM> and <FONT color="purple"> we
would use <SPAN CLASS="mathit"> and <SPAN CLASS="mathsf">. This would
make the output much more flexible, not to mention that it would be
easier to maintain the .hva files. We could provide several CSS
styles, etc.

I am willing to experiment with my suggestion, and would appreciate
any advice on where to start and how to go about it.
(Continue reading)

Hugo Roy | 10 Feb 20:05
Picon
Gravatar

[heveau] newcommand with an href link

Hello,

First, let me say all my gratitude towards the developers of Hevea on
this list :-)

Ok, now, I have a problem when I use Hevea, the HTML output gets some of
my links wrong. For instance, I created a
command:

\newcommand{\legifciv}[1]{\href{http://www.legifrance.gouv.fr/WAspad/UnArticleDeCode?code=CCIVILL0.rcv&art=#1}{art.
#1 c. civ.}}

This allow me to link to a legal text easily (by the way if you know a
better solution to do this, maybe I'm doing something wrong). So for
instance I can write in my text, "Blah blah as \legifciv{1143} is
saying" and in my PDF, it makes a link to
http://www.legifrance.gouv.fr/WAspad/UnArticleDeCode?code=CCIVILL0.rcv&art=1143

However, in the html output made by Hevea, the link gets into,
http://www.legifrance.gouv.fr/WAspad/UnArticleDeCode?code=CCIVILL0.rcv&art=#1

So, did I do wrong with my command? Or is it Hevea that should do
otherwise?

I hope you can have a look at this issue, and I'm sorry if it's already
been reported, I don't really know where to look (yet?)

Best regards,
Hugo

(Continue reading)

luc.maranget | 22 Nov 10:09
Picon
Picon
Favicon

Re: [heveau] Hevea image handling

Hello,

If I get it right, the issue is covered by hevea manual:
Have a look at section 8.2 ``More on included images''
<http://hevea.inria.fr/doc/manual018.html#toc23>

Hope it helps,

--Luc

> Helo,
> 
> Starting to use hevea for our documentation (flowvr.sf.net), we are facing 
> an issue with image handling.
> Hevea regenerates its own images for figures (through imagen).  It leads to 
> poor quality figures compared to the original images
> we have.   Is there a way to  tell  hevea to use the original images ?
> 
> 
> 
> Thanks,
> 
> 
> Bruno.
> 
> 
> 
> 
> -- 
> Bruno Raffin
(Continue reading)

Bruno Raffin | 22 Nov 10:04
Picon
Picon
Favicon

[heveau] Hevea image handling

Helo,

Starting to use hevea for our documentation (flowvr.sf.net), we are facing an issue with image handling.
Hevea regenerates its own images for figures (through imagen).  It leads to poor quality figures compared
to the original images
we have.   Is there a way to  tell  hevea to use the original images ?

Thanks,

Bruno.

--

-- 
Bruno Raffin
INRIA Research Scientist
Moais Project
LIG (Grenoble Informatics Laboratory)
Phone: +33 4 76 61 20 65
Web: http://www-id.imag.fr/~raffin/

Didier Remy | 14 Oct 16:23
Picon
Picon
Favicon

Re: [heveau] Re: invoking a command from HeVeA like \write18

> Given the potential security problems of the \@exec primitive
> I will not include it in official hevea releases.

Perhaps, an intermediate options to limit security issues could to pass the
program to call with its options on the command line and bing it to a latex
command of one's choice \myprof that can then be used to evaluate
"\myprog{arg}" to the output produced by the program "myprog" called with
arg in stdin.

         Didier

luc.maranget | 14 Oct 16:14
Picon
Picon
Favicon

[heveau] Re: invoking a command from HeVeA like \write18

> On Thu, Oct 14, 2010 at 02:42:14PM +0200, luc.maranget <at> inria.fr wrote:
> > Hello,
> > 
> > hevea has the -exec option fro this purpose.
> > <http://hevea.inria.fr/doc/manual041.html#toc119>
> > 
> > See also
> > <http://hevea.inria.fr/doc/manual038.html#toc97>
> 
> 
> It is not exactly the same, since \write18 (at least in pdflatex, when
> suitably enabled) is getting all the TeX & LaTeX rewriting abilities
> underneath.
> 
> As a concrete example, the texments LaTeX package
> http://www.ctan.org/tex-archive/macros/latex/contrib/texments/ is
> incoking pygments (a customizable pretty printer/colorizer/beautifier
> for 250+ programming languages see http://pygments.org for more) with
> things like
> 
>  \newcommand{\usestyle}[1]{
>  \immediate\write18{pygmentize -S #1 -f latex > \jobname.pyg}
>  \input{\jobname.pyg}
>  }
> 
> My own wish is for writing documentation about some domain specific
> language (GCC MELT, http://gcc.gnu.org/wiki/MELT if that matters) and
> I really need that the LaTeX input drives some real execution of some
> commands.
> 
(Continue reading)

luc.maranget | 14 Oct 14:42
Picon
Picon
Favicon

[heveau] Re: invoking a command from HeVeA like \write18

Hello,

hevea has the -exec option fro this purpose.
<http://hevea.inria.fr/doc/manual041.html#toc119>

See also
<http://hevea.inria.fr/doc/manual038.html#toc97>

Hope it helps,

--Luc

> Hello Luc and list
> 
> I find the \write18 feature of pdflatex sometimes extremly useful (but
> of course it is well known that it can be abused and opens a big
> security hole; however careful users can cope with that risk).
> 
> Is there any intent of adding such a feature into HeVeA?
> 
> As you probably know, the \write18 "primitive" runs a system command,
> so you could of course remove all your files with \write18{rm -rf *}
> but this is a well known security risk which for honest users (most
> people run latex or hevea on document they are writing themselves) is
> not that important.
> 
> Regards.
> 
> -- 
> Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
(Continue reading)

Basile Starynkevitch | 14 Oct 14:30

[heveau] invoking a command from HeVeA like \write18

Hello Luc and list

I find the \write18 feature of pdflatex sometimes extremly useful (but
of course it is well known that it can be abused and opens a big
security hole; however careful users can cope with that risk).

Is there any intent of adding such a feature into HeVeA?

As you probably know, the \write18 "primitive" runs a system command,
so you could of course remove all your files with \write18{rm -rf *}
but this is a well known security risk which for honest users (most
people run latex or hevea on document they are writing themselves) is
not that important.

Regards.

--

-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

luc.maranget | 6 Oct 10:12
Picon
Picon
Favicon

Re: [heveau] index

Dear Michel,

It would really help me to help you if you provide a precise
account of the problem you encounter.
Ideally, a complete doc.tex file that reveals the problem.

However, I noticed:

1. \usepackage[index] ---> \usepackage{index}

2. On the ?? anchor, you probably need to run hevea several times,
   as instructed by the warning, or, better, give option ``-fix''
   to hevea.

Hope it helps,

--Luc

> 1) I have written in my doc.tex
> \usepackage[index]
> \newindex[thesection]{essai}{adx}{and}{Mon index}
> But it seems to me that this index is ignored because later
> with the hevea call, I have the message (on \index )
> Index structure not found, missing \newindex{essai}
> 
> 2) Before I have tried the defaut index with
> \usepackage[index]
> \makeindex
> With hevea, the printed index (by \printindex) have an anchor with
> "??". Is it possible to have another anchor name ?
(Continue reading)


Gmane