How to control page margins

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to control page margins

Trevor Turton
When I print a page from Amaya to A4 stationery I get a 3cm left margin
and a 4.5cm top margin.  I need to make these smaller.  I have tried
using a @page {margin: ...} } style sheet entry but that doesn't change
things.  Please let me know how I can set my page margins.

Thanks
Trevor Turton


Reply | Threaded
Open this post in threaded view
|

Re: How to control page margins

Helder Magalhães
Hi Trevor,


> When I print a page from Amaya to A4 stationery I get a 3cm left margin and
> a 4.5cm top margin.  I need to make these smaller.
[...]
>  Please let me know how I can set my page margins.

If I recall correctly, Amaya did have a print setup dialog with those
sort of preferences (please correct me if I'm wrong) but they were
removed during an infrastructure revamp (around version 10?). Quickly
trying with Amaya 11.3.1 (Dec 9 2009), I also wasn't able to find any
menu or preference where to tweak this kind of parameters.

In the meantime I can imagine that, therefore, probably Amaya is
simply using the default printer settings. As you haven't said
anything about your Amaya version nor environment (operating system,
at least), I'm just going to state that, on Windows, this can be
accessed through "Control Panel", "Printers  [and Faxes]",
right-clicking the desired printing and choosing "Printer
Preferences...". Then, according to the printer driver functionality,
you may be able to tweak more or less settings (which are basically
the default printing preferences which will apply to all
applications). Note that I haven't attempted this myself (check that
the default printer settings affect Amaya) so further feedback would
be welcome. :-)

(Another workaround will be using a browser which supports this sort
of tweaks. Firefox is such an example, although it also has its
printing issues.)


> Thanks
> Trevor Turton

Hope this helps,
 Helder

Reply | Threaded
Open this post in threaded view
|

Re: How to control page margins

Trevor Turton
In reply to this post by Trevor Turton
Hi Helder

Thanks for the detailed reply.  I am using Windows, so your advice was spot on.  Unfortunately the drivers for the printers that are available to me don't include margin control among the options that they allow me to set.

I would gladly use Firefox to do the printing, it lets me set margins, headings, and footings.  Unfortunately I hit a problem.  I'm using Amaya 11.3 to insert math equations into several existing HTML documents.  The equations look good when viewed with Amaya and they print well too, except for the margins.  When I save the edited document and open it in Firefox, the equations don't display correctly, particularly when they include a fraction.  So that's the real problem, but I thought that setting print margins in Amaya would be easier to fix.  Maybe not.

Amaya automatically converts the HTML documents to XHTML when I insert a math equation.  I have attached a really simple example to this note that shows the problem.  I noticed that it doesn't supply a DOCTYPE when it does this.  I tried telling Amaya to convert the document to XHTML Transitional before inserting the first equation, and then it inserts a good DOCTYPE, but this makes no difference to the way that Firefox displays the equations.

Regards
Trevor Turton


Hi Trevor,


> When I print a page from Amaya to A4 stationery I get a 3cm left margin and
> a 4.5cm top margin.  I need to make these smaller.
[...]
>  Please let me know how I can set my page margins.
If I recall correctly, Amaya did have a print setup dialog with those
sort of preferences (please correct me if I'm wrong) but they were
removed during an infrastructure revamp (around version 10?). Quickly
trying with Amaya 11.3.1 (Dec 9 2009), I also wasn't able to find any
menu or preference where to tweak this kind of parameters.

In the meantime I can imagine that, therefore, probably Amaya is
simply using the default printer settings. As you haven't said
anything about your Amaya version nor environment (operating system,
at least), I'm just going to state that, on Windows, this can be
accessed through "Control Panel", "Printers  [and Faxes]",
right-clicking the desired printing and choosing "Printer
Preferences...". Then, according to the printer driver functionality,
you may be able to tweak more or less settings (which are basically
the default printing preferences which will apply to all
applications). Note that I haven't attempted this myself (check that
the default printer settings affect Amaya) so further feedback would
be welcome. :-)

(Another workaround will be using a browser which supports this sort
of tweaks. Firefox is such an example, although it also has its
printing issues.)
> Thanks
> Trevor Turton
Hope this helps, Helder



equation.html (529 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to control page margins

Frédéric WANG
Hi Trevor,

I've you tried to use the extension .xhtml instead of .html before opening it in Firefox? (see attachment).
I also recommend you to install STIX fonts for Firefox: https://developer.mozilla.org/en/Mozilla_MathML_Project/Fonts
Note that you are also likely to have the following bug when printing with Firefox: bug https://bugzilla.mozilla.org/show_bug.cgi?id=546044

Le 08/10/2010 08:51, Trevor Turton a écrit :
Hi Helder

Thanks for the detailed reply.  I am using Windows, so your advice was spot on.  Unfortunately the drivers for the printers that are available to me don't include margin control among the options that they allow me to set.

I would gladly use Firefox to do the printing, it lets me set margins, headings, and footings.  Unfortunately I hit a problem.  I'm using Amaya 11.3 to insert math equations into several existing HTML documents.  The equations look good when viewed with Amaya and they print well too, except for the margins.  When I save the edited document and open it in Firefox, the equations don't display correctly, particularly when they include a fraction.  So that's the real problem, but I thought that setting print margins in Amaya would be easier to fix.  Maybe not.

Amaya automatically converts the HTML documents to XHTML when I insert a math equation.  I have attached a really simple example to this note that shows the problem.  I noticed that it doesn't supply a DOCTYPE when it does this.  I tried telling Amaya to convert the document to XHTML Transitional before inserting the first equation, and then it inserts a good DOCTYPE, but this makes no difference to the way that Firefox displays the equations.

Regards
Trevor Turton

--
Frédéric Wang.
Website - Weblog

equation.xhtml (698 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to control page margins

Frédéric WANG
You're welcome! Actually, a lot of people have had the same problem. Fortunately, the next versions of browsers will behave as Amaya, and accept MathML/SVG in non-xhtml pages.

Le 08/10/2010 09:20, Trevor Turton a écrit :
Wow!  Gold dust!  I tried your suggestion, Frédéric, and it worked.  So simple!  I have the STIX fonts installed.
Thanks also to Helder for getting me going.  This mailing list is very supportive.

Regards
Trevor

On 2010-10-08 09:06, Frédéric WANG wrote:
Hi Trevor,

I've you tried to use the extension .xhtml instead of .html before opening it in Firefox? (see attachment).
I also recommend you to install STIX fonts for Firefox: https://developer.mozilla.org/en/Mozilla_MathML_Project/Fonts
Note that you are also likely to have the following bug when printing with Firefox: bug https://bugzilla.mozilla.org/show_bug.cgi?id=546044

Le 08/10/2010 08:51, Trevor Turton a écrit :
Hi Helder

Thanks for the detailed reply.  I am using Windows, so your advice was spot on.  Unfortunately the drivers for the printers that are available to me don't include margin control among the options that they allow me to set.

I would gladly use Firefox to do the printing, it lets me set margins, headings, and footings.  Unfortunately I hit a problem.  I'm using Amaya 11.3 to insert math equations into several existing HTML documents.  The equations look good when viewed with Amaya and they print well too, except for the margins.  When I save the edited document and open it in Firefox, the equations don't display correctly, particularly when they include a fraction.  So that's the real problem, but I thought that setting print margins in Amaya would be easier to fix.  Maybe not.

Amaya automatically converts the HTML documents to XHTML when I insert a math equation.  I have attached a really simple example to this note that shows the problem.  I noticed that it doesn't supply a DOCTYPE when it does this.  I tried telling Amaya to convert the document to XHTML Transitional before inserting the first equation, and then it inserts a good DOCTYPE, but this makes no difference to the way that Firefox displays the equations.

Regards
Trevor Turton

--
Frédéric Wang.
Website - Weblog


--
Frédéric Wang.
Website - Weblog
Reply | Threaded
Open this post in threaded view
|

Re: How to control page margins

Trevor Turton
  Hi Folks

While we're talking about printing from Amaya, I see that the Amaya
manual has page headers and footers, with the page number in the footer,
and it claims that it was printed from Amaya.  Does anyone know how one
can achieve that when printing an HTML document from Amaya?  The print
dialog doesn't offer these options.

Regards
Trevor Turton