Error with macro use case where arguments span in several lines

2020-11-18 Thread Hilaire Fernandes

Hi,

With a figure macro defined as:

@c Figure with caption @macro figure{caption,file,width} @ifnotplaintext 
 @float Figure,\file\  @center @image{\file\,\width\cm} 
 @caption{\caption\}  @end float @end ifnotplaintext @ifplaintext 
 @float Figure  @caption{\caption\}  @end float @end ifplaintext @iftex 
   @sp 1 @end iftex @end macro


It is fined when used as:

@figure{The File List tool@comma{} to install a change set and 
more,ch10-FileListChangeSet,11}


But got error when used and formated in two lines:

@figure{The File List tool@comma{} to install a change set and more, 
ch10-FileListChangeSet,11}


It is strange because with some other macro I don't have issue to put 
the arguments in several lines to improve readability of the source text 
document.


Thanks

Hilaire


Error attached bellow:

l.155 ch10-FileListChangeSet,11}

Runaway argument?

{

/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex

info:155: Paragraph ended before @trim@ was complete.



   @par

 ^^M

  ch10-FileListChangeSet

@eatspaces ...@expandafter @trim@ @expandafter {#1

   }

@setref ...xrdef ##1##2{@write @auxfile {@xrdef{#1

  -##1}{##2}}}@toks 0 = 
@exp...


@dofloat ...attype }@setref {@floatlabel }{Yfloat}

  }@fi @vskip @parskip 
@rest...


l.3 ch10-FileListChangeSet}

...

l.155 ch10-FileListChangeSet,11}

/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex

info:155: Undefined control sequence.

@setref ...currentsection }@immediate @writexrdef

  {title}{@the @toks 0 
}@imm...


@dofloat ...attype }@setref {@floatlabel }{Yfloat}

  }@fi @vskip @parskip 
@rest...


l.3 ch10-FileListChangeSet}

@scanmacro ...@eatspaces }@scantokens {#1@comment}

l.155 ch10-FileListChangeSet,11}

/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex

info:155: Undefined control sequence.

@setref ...}{@the @toks 0 }@immediate @writexrdef

  {snt}{@csname 
#2@endcsname...


@dofloat ...attype }@setref {@floatlabel }{Yfloat}

  }@fi @vskip @parskip 
@rest...


l.3 ch10-FileListChangeSet}

@scanmacro ...@eatspaces }@scantokens {#1@comment}

l.155 ch10-FileListChangeSet,11}

/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex

info:155: Undefined control sequence.

 @writexrdef

   {pg}{@folio }

@safewhatsit #1->@ifhmode #1

    @else @whatsitskip = @lastskip @edef 
@lastskipma...


@setref ...safewhatsit {@writexrdef {pg}{@folio }}

  }@fi

@dofloat ...attype }@setref {@floatlabel }{Yfloat}

  }@fi @vskip @parskip 
@rest...


l.3 ch10-FileListChangeSet}

@scanmacro ...@eatspaces }@scantokens {#1@comment}

l.155 ch10-FileListChangeSet,11}

/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex

info:155: Extra }, or forgotten @endgroup.

@dofloat ...ttype }@setref {@floatlabel }{Yfloat}}

  @fi @vskip @parskip 
@resto...


l.3 ch10-FileListChangeSet}

@scanmacro ...@eatspaces }@scantokens {#1@comment}

l.155 ch10-FileListChangeSet,11}

Runaway argument?

{

/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex

info:155: Paragraph ended before @trim@ was complete.



   @par

 ^^M

  ch10-FileListChangeSet

@eatspaces ...@expandafter @trim@ @expandafter {#1

   }

@dopdfimage ...xt =@empty @begingroup @openin 1 #1

  .pdf @ifeof 1 @openin 
1 #1...


@imagexxx ...t @fi @ifpdf @dopdfimage {#1}{#2}{#3}

  @else @ifx 
@XeTeXrevision ...


@image ...true @fi @else @imagexxx #1,@finish

  @fi

...

l.155 ch10-FileListChangeSet,11}

/home/hilaire/Travaux/Developpement/Cuis/TheCuisBook/en/chapter-10/contents.tex

info:155: Extra }, or forgotten @endgroup.

@eatspaces ...xpandafter @trim@ @expandafter {#1 }

@dopdfimage ...xt =@empty @begingroup @openin 1 #1

  .pdf @ifeof 1 @openin 
1 #1...


@imagexxx ...t @fi @ifpdf @dopdfimage {#1}{#2}{#3}

  @else @ifx 
@XeTeXrevision ...


@image ...true @fi @else @imagexxx #1,@finish

  @fi

 ...leListChangeSet},@xeatspaces {11}cm}

  @unskip @hfil

@centersub ...enalty @fi @line {@kern 

Re: Displaying images for html output

2020-11-18 Thread Christopher Dimech


Image Extension
===

> Yes, it is confirmed, as far as I can tell.

Thusly, @image must use ".png", also for html output to get the following to 
work

@image{../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,.png}

File Location
=

Regarding splitting the file location to use @value

E.g.

From
@image{../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,.png}

To

@set imgpath ../Ideogr/Ch03b--Chmed
@set imgname igc03--01--Sicl--CircAmRg
@image{@value{imgpath}/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,.png}
@image{@value{imgpath}/@value{imgname},8cm,8cm,AltText,.png}

This works for html output, but not for pdf.

Could these two things (File Extension, @value in file location)
be added to the TODO list for Texinfo?

Regards
Christopher


> Sent: Tuesday, November 17, 2020 at 2:35 PM
> From: "Patrice Dumas" 
> To: "Christopher Dimech" 
> Cc: "Gavin Smith" , "help-texinfo gnu" 
> 
> Subject: Re: Displaying images for html output
>
> On Tue, Nov 17, 2020 at 01:47:41PM +0100, Christopher Dimech wrote:
> > > > @image{../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,png}
> > > >
> > > > Furthermore, you cannot put ".png" as the fifth argument because for 
> > > > html that will
> > > > fail.  You have to put "png", without the period dot.
> > >
> > > This would be a bug if it is true.  The manual says to include the period:
> >
> > Have you confirmed the bug, Gavin, Patrice?
>
> Yes, it is confirmed, as far as I can tell.
>
> >
> >
> >
> > > Sent: Sunday, November 15, 2020 at 6:42 PM
> > > From: "Gavin Smith" 
> > > To: "Christopher Dimech" 
> > > Cc: "help-texinfo gnu" 
> > > Subject: Re: Displaying images for html output
> > >
> > > On Sun, Nov 15, 2020 at 05:12:13PM +0100, Christopher Dimech wrote:
> > > >
> > > > It is the fifth and I still get the Alt Text Attribute.
> > > >
> > > > The output was
> > > >
> > > > ../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg
> > > >
> > > > If I put
> > > >
> > > > @image{../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,.png}
> > > >
> > > > I get AltText
> > > >
> > > > But now I have understood the problem,
> > > >
> > > > Although the file exists at 
> > > > ../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.png
> > > > because the html index file resides in a subdirectory generated by 
> > > > texi2any, the
> > > > code got to be changed to
> > > >
> > > > @image{../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,png}
> > > >
> > > > Furthermore, you cannot put ".png" as the fifth argument because for 
> > > > html that will
> > > > fail.  You have to put "png", without the period dot.
> > >
> > > This would be a bug if it is true.  The manual says to include the period:
> > >
> > >* For Info and HTML output, 'makeinfo' uses the optional fifth
> > >  argument EXTENSION to '@image' for the filename extension, if it is
> > >  specified and the file is found.  Any leading period should be
> > >  included in EXTENSION.  For example:
> > >
> > >   @image{foo.xpm}
> > >
> >
>



Re: Displaying images for html output

2020-11-18 Thread Gavin Smith
On Sun, Nov 15, 2020 at 08:11:19PM +0100, Christopher Dimech wrote:
> When using the following, the imape is displayed.
> 
> @set dirhtml ../../Ideogr/Ch03b--Chmed
> @image{@value{dirhtml}/igc03--01--Sicl--CircAmRg,8cm,8cm,,png}
> 
> However, one gets the following warning
> 
> Ch03a--Chmed--html.texi:309: warning: @image file 
> `../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg'
> (for HTML) not found, using 
> `../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.png'
> 
> --
> 
> But suppose one changes the command to include .png as below
> 
> @set dirhtml ../../Ideogr/Ch03b--Chmed
> @image{@value{dirhtml}/igc03--01--Sicl--CircAmRg,8cm,8cm,,.png}
> 
> One will get
> 
> Ch03a--Chmed--html.texi:309: warning: @image file 
> `../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg'
> (for HTML) not found, using 
> `../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg..png'
> 
> And the image is not displayed.

Thanks for sending the input and the output.  This problem only occurs
when the image file is not found.  I've tried to fix it in commit
e2d579377.



Re: Displaying images for html output

2020-11-18 Thread Christopher Dimech
> Sent: Wednesday, November 18, 2020 at 9:45 PM
> From: "Gavin Smith" 
> To: "Christopher Dimech" 
> Cc: "help-texinfo gnu" 
> Subject: Re: Displaying images for html output
>
> On Sun, Nov 15, 2020 at 08:11:19PM +0100, Christopher Dimech wrote:
> > When using the following, the imape is displayed.
> >
> > @set dirhtml ../../Ideogr/Ch03b--Chmed
> > @image{@value{dirhtml}/igc03--01--Sicl--CircAmRg,8cm,8cm,,png}
> >
> > However, one gets the following warning
> >
> > Ch03a--Chmed--html.texi:309: warning: @image file 
> > `../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg'
> > (for HTML) not found, using 
> > `../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.png'
> >
> > --
> >
> > But suppose one changes the command to include .png as below
> >
> > @set dirhtml ../../Ideogr/Ch03b--Chmed
> > @image{@value{dirhtml}/igc03--01--Sicl--CircAmRg,8cm,8cm,,.png}
> >
> > One will get
> >
> > Ch03a--Chmed--html.texi:309: warning: @image file 
> > `../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg'
> > (for HTML) not found, using 
> > `../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg..png'
> >
> > And the image is not displayed.
>
> Thanks for sending the input and the output.  This problem only occurs
> when the image file is not found.  I've tried to fix it in commit
> e2d579377.

Does it really! I have to check that out, give me a moment.

Regards
Christopher




Re: Displaying images for html output

2020-11-18 Thread Christopher Dimech
> Sent: Wednesday, November 18, 2020 at 9:52 PM
> From: "Christopher Dimech" 
> To: "Gavin Smith" 
> Cc: "help-texinfo gnu" 
> Subject: Re: Displaying images for html output
>
> > Sent: Wednesday, November 18, 2020 at 9:45 PM
> > From: "Gavin Smith" 
> > To: "Christopher Dimech" 
> > Cc: "help-texinfo gnu" 
> > Subject: Re: Displaying images for html output
> >
> > On Sun, Nov 15, 2020 at 08:11:19PM +0100, Christopher Dimech wrote:
> > > When using the following, the imape is displayed.
> > >
> > > @set dirhtml ../../Ideogr/Ch03b--Chmed
> > > @image{@value{dirhtml}/igc03--01--Sicl--CircAmRg,8cm,8cm,,png}
> > >
> > > However, one gets the following warning
> > >
> > > Ch03a--Chmed--html.texi:309: warning: @image file 
> > > `../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg'
> > > (for HTML) not found, using 
> > > `../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.png'
> > >
> > > --
> > >
> > > But suppose one changes the command to include .png as below
> > >
> > > @set dirhtml ../../Ideogr/Ch03b--Chmed
> > > @image{@value{dirhtml}/igc03--01--Sicl--CircAmRg,8cm,8cm,,.png}
> > >
> > > One will get
> > >
> > > Ch03a--Chmed--html.texi:309: warning: @image file 
> > > `../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg'
> > > (for HTML) not found, using 
> > > `../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg..png'
> > >
> > > And the image is not displayed.
> >
> > Thanks for sending the input and the output.  This problem only occurs
> > when the image file is not found.  I've tried to fix it in commit
> > e2d579377.
>
> Does it really! I have to check that out, give me a moment.

No.  The file exists and I use the correct path relative to
index.html. So the path is correct as far as html is concerned.

But the image is only displayed when using 'png' only.  Whereas
the correct syntax should be '.png', and this fails.



> Regards
> Christopher
>
>
>



Re: Displaying images for html output

2020-11-18 Thread Gavin Smith
On Wed, Nov 18, 2020 at 10:15:40PM +0100, Christopher Dimech wrote:
> > > Thanks for sending the input and the output.  This problem only occurs
> > > when the image file is not found.  I've tried to fix it in commit
> > > e2d579377.
> >
> > Does it really! I have to check that out, give me a moment.
> 
> No.  The file exists and I use the correct path relative to
> index.html. So the path is correct as far as html is concerned.

As you said in another email the file name should be relative to
the Texinfo file for consistency with other output formats.

I doubt that relative names beginning "../" were much considered
when @image was implemented (or even file names with directory parts
at all).

I haven't thought of a clear answer for this issue yet.  I think that
for split output, the image files need to be copied into the output
directory and the file names should be given under that, not beginning
"../".  Alternatively, you could create a symbolic link to a directory
containing the image files under the output directory.

It's odd that the include path should be searched for image files.
This makes sense for TeX but not for other formats, as there is no
search path for image files for HTML or Info.  It would only make sense
if texi2any was going to copy the image files to the output location.



Re: Displaying images for html output

2020-11-18 Thread Christopher Dimech
> Sent: Wednesday, November 18, 2020 at 10:47 PM
> From: "Gavin Smith" 
> To: "Christopher Dimech" 
> Cc: "help-texinfo gnu" 
> Subject: Re: Displaying images for html output
>
> On Wed, Nov 18, 2020 at 10:15:40PM +0100, Christopher Dimech wrote:
> > > > Thanks for sending the input and the output.  This problem only occurs
> > > > when the image file is not found.  I've tried to fix it in commit
> > > > e2d579377.
> > >
> > > Does it really! I have to check that out, give me a moment.
> >
> > No.  The file exists and I use the correct path relative to
> > index.html. So the path is correct as far as html is concerned.
>
> As you said in another email the file name should be relative to
> the Texinfo file for consistency with other output formats.

Correct.  I suppose you have made the change.  My comment was on
how I had tested it. At that time in test.texi the path that
a user had to put for html output was relative to the index file.

> I doubt that relative names beginning "../" were much considered
> when @image was implemented (or even file names with directory parts
> at all).

Relative paths are very good, because if you copy your document project
somewhere else or on another machine, you will still be able to execute
the texinfo commands and nothing will break.  And if you give a copy to
your friend, he can get to work straightaway, ne need to change paths.


> I haven't thought of a clear answer for this issue yet.  I think that
> for split output, the image files need to be copied into the output
> directory and the file names should be given under that, not beginning
> "../".  Alternatively, you could create a symbolic link to a directory
> containing the image files under the output directory.
>
> It's odd that the include path should be searched for image files.
> This makes sense for TeX but not for other formats, as there is no
> search path for image files for HTML or Info.  It would only make sense
> if texi2any was going to copy the image files to the output location.

So the user has to transfer the files somewhere and picks them from there?
'https://path/file.svg>' always has some sort of path anyway.

For large projects, image files are put in hierarchical directory structures.
If you copy everything as is, your docu.texi will help you as the location
of images is structured. If you put everything together, it will be a mess
to manage.  It is not a critical problem if internally texinfo makes a copy
of the image files and refers to that.  But don't mess the texinfo code itself.
In the source code users must be able to use a directory structure for images.







Re: Displaying images for html output

2020-11-18 Thread Christopher Dimech
For html there were four problems

1.

The file does not exist (relative to index.html) and using '.png' the
error shows '..png'

@image{../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,.png}

2.

The file exists (relative to index.html) and using '.png' does not give an
error.  But the image is not displayed in html output.

@image{../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,.png}

3.

The file exists (relative to index.html) and using 'png' does not give an
error.  The image is displayed correctly in html output.

@image{../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,png}

4.

Image Width and Height have no effect in html output.  Had passed an image that
was displayed very large compared to the text.  Changed Width and Height in
the call to @image, but the size of the image was not reduced compared to the 
text.


-
Christopher Dimech
General Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy


> Sent: Wednesday, November 18, 2020 at 10:47 PM
> From: "Gavin Smith" 
> To: "Christopher Dimech" 
> Cc: "help-texinfo gnu" 
> Subject: Re: Displaying images for html output
>
> On Wed, Nov 18, 2020 at 10:15:40PM +0100, Christopher Dimech wrote:
> > > > Thanks for sending the input and the output.  This problem only occurs
> > > > when the image file is not found.  I've tried to fix it in commit
> > > > e2d579377.
> > >
> > > Does it really! I have to check that out, give me a moment.
> >
> > No.  The file exists and I use the correct path relative to
> > index.html. So the path is correct as far as html is concerned.
>
> As you said in another email the file name should be relative to
> the Texinfo file for consistency with other output formats.
>
> I doubt that relative names beginning "../" were much considered
> when @image was implemented (or even file names with directory parts
> at all).
>
> I haven't thought of a clear answer for this issue yet.  I think that
> for split output, the image files need to be copied into the output
> directory and the file names should be given under that, not beginning
> "../".  Alternatively, you could create a symbolic link to a directory
> containing the image files under the output directory.
>
> It's odd that the include path should be searched for image files.
> This makes sense for TeX but not for other formats, as there is no
> search path for image files for HTML or Info.  It would only make sense
> if texi2any was going to copy the image files to the output location.
>



Re: Error with macro use case where arguments span in several lines

2020-11-18 Thread Gavin Smith
On Wed, Nov 18, 2020 at 09:46:00AM +0100, Hilaire Fernandes wrote:
> Hi,
> 
> With a figure macro defined as:
> 
> @c Figure with caption @macro figure{caption,file,width} @ifnotplaintext
>  @float Figure,\file\  @center @image{\file\,\width\cm}  @caption{\caption\}
>  @end float @end ifnotplaintext @ifplaintext  @float Figure
>  @caption{\caption\}  @end float @end ifplaintext @iftex    @sp 1 @end iftex
> @end macro
> 

Ends of lines are missing here, could you send it again so I can test
it?



Re: Width and Height in @image for Html Output fail

2020-11-18 Thread Gavin Smith
On Mon, Nov 16, 2020 at 09:44:28PM +0100, Christopher Dimech wrote:
> 
> > Sent: Monday, November 16, 2020 at 9:33 PM
> > From: "Patrice Dumas" 
> > To: "Christopher Dimech" 
> > Cc: "help-texinfo gnu" 
> > Subject: Re: Width and Height in @image for Html Output fail
> >
> > On Mon, Nov 16, 2020 at 09:32:08PM +0100, Christopher Dimech wrote:
> > > Have noticed that when using @image for html output, setting
> > > the width and height fails.
> >
> > Not sure what you mean about that, but it is documented that
> >
> >  The optional WIDTH and HEIGHT arguments to the '@image' command (see the
> >  previous section) specify the size to which to scale the image.  They
> >  are only taken into account in TeX.
> >
> > --
> > Pat
> 
> The problem that I have encountered war that the image was to large
> and the text too small.  Then when I zoom, and the text becomes
> big enough, the image becomes enormous that I cannot view it.

Could you shrink the images in the files you are using in HTML to
have fewer pixels?  As far as I understand it by default images in
HTML are displayed with 1 file pixel to 1 display pixel.

That doesn't sound like a great solution, though, because displays
can be different sizes.

I wonder if there would be any harm in outputing the width and
height attributes for HTML as well, espcially if they are given
in display-independent units such as ems.



Re: Error with macro use case where arguments span in several lines

2020-11-18 Thread Christopher Dimech
I have witnessed this problem.  It could be related to the multi-line
problem we discussed for headings, where I started using @ at the end
of @unnumbered if the title spans more than one line. 



-
Christopher Dimech
General Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy


> Sent: Thursday, November 19, 2020 at 7:44 AM
> From: "Gavin Smith" 
> To: "Hilaire Fernandes" 
> Cc: "help-texinfo gnu" 
> Subject: Re: Error with macro use case where arguments span in several lines
>
> On Wed, Nov 18, 2020 at 09:46:00AM +0100, Hilaire Fernandes wrote:
> > Hi,
> > 
> > With a figure macro defined as:
> > 
> > @c Figure with caption @macro figure{caption,file,width} @ifnotplaintext
> >  @float Figure,\file\  @center @image{\file\,\width\cm}  @caption{\caption\}
> >  @end float @end ifnotplaintext @ifplaintext  @float Figure
> >  @caption{\caption\}  @end float @end ifplaintext @iftex    @sp 1 @end iftex
> > @end macro
> > 
> 
> Ends of lines are missing here, could you send it again so I can test
> it?
> 
>



Re: Width and Height in @image for Html Output fail

2020-11-18 Thread Christopher Dimech


> Sent: Thursday, November 19, 2020 at 7:59 AM
> From: "Gavin Smith" 
> To: "Christopher Dimech" 
> Cc: "Patrice Dumas" , "help-texinfo gnu" 
> 
> Subject: Re: Width and Height in @image for Html Output fail
>
> On Mon, Nov 16, 2020 at 09:44:28PM +0100, Christopher Dimech wrote:
> >
> > > Sent: Monday, November 16, 2020 at 9:33 PM
> > > From: "Patrice Dumas" 
> > > To: "Christopher Dimech" 
> > > Cc: "help-texinfo gnu" 
> > > Subject: Re: Width and Height in @image for Html Output fail
> > >
> > > On Mon, Nov 16, 2020 at 09:32:08PM +0100, Christopher Dimech wrote:
> > > > Have noticed that when using @image for html output, setting
> > > > the width and height fails.
> > >
> > > Not sure what you mean about that, but it is documented that
> > >
> > >  The optional WIDTH and HEIGHT arguments to the '@image' command (see the
> > >  previous section) specify the size to which to scale the image.  They
> > >  are only taken into account in TeX.
> > >
> > > --
> > > Pat
> >
> > The problem that I have encountered war that the image was to large
> > and the text too small.  Then when I zoom, and the text becomes
> > big enough, the image becomes enormous that I cannot view it.
>
> Could you shrink the images in the files you are using in HTML to
> have fewer pixels?  As far as I understand it by default images in
> HTML are displayed with 1 file pixel to 1 display pixel.

That would pose a problem as the image files are 300psi and reach 13cm
in width.

> That doesn't sound like a great solution, though, because displays
> can be different sizes.

Quite right.

> I wonder if there would be any harm in outputing the width and
> height attributes for HTML as well, espcially if they are given
> in display-independent units such as ems.
>



Re: Width and Height in @image for Html Output fail

2020-11-18 Thread Christopher Dimech
Can't the large image be downsized with the height and width attributes in
html?

-
Christopher Dimech
General Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy


> Sent: Thursday, November 19, 2020 at 7:59 AM
> From: "Gavin Smith" 
> To: "Christopher Dimech" 
> Cc: "Patrice Dumas" , "help-texinfo gnu" 
> 
> Subject: Re: Width and Height in @image for Html Output fail
>
> On Mon, Nov 16, 2020 at 09:44:28PM +0100, Christopher Dimech wrote:
> >
> > > Sent: Monday, November 16, 2020 at 9:33 PM
> > > From: "Patrice Dumas" 
> > > To: "Christopher Dimech" 
> > > Cc: "help-texinfo gnu" 
> > > Subject: Re: Width and Height in @image for Html Output fail
> > >
> > > On Mon, Nov 16, 2020 at 09:32:08PM +0100, Christopher Dimech wrote:
> > > > Have noticed that when using @image for html output, setting
> > > > the width and height fails.
> > >
> > > Not sure what you mean about that, but it is documented that
> > >
> > >  The optional WIDTH and HEIGHT arguments to the '@image' command (see the
> > >  previous section) specify the size to which to scale the image.  They
> > >  are only taken into account in TeX.
> > >
> > > --
> > > Pat
> >
> > The problem that I have encountered war that the image was to large
> > and the text too small.  Then when I zoom, and the text becomes
> > big enough, the image becomes enormous that I cannot view it.
>
> Could you shrink the images in the files you are using in HTML to
> have fewer pixels?  As far as I understand it by default images in
> HTML are displayed with 1 file pixel to 1 display pixel.
>
> That doesn't sound like a great solution, though, because displays
> can be different sizes.
>
> I wonder if there would be any harm in outputing the width and
> height attributes for HTML as well, espcially if they are given
> in display-independent units such as ems.
>