From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Feature request [Resizeable Literal examples] Date: Wed, 25 Mar 2009 10:17:07 +0100 Message-ID: <693E3E35-CD48-4035-A294-2D246AE4863E@gmail.com> References: <49C9E606.2050305@cern.ch> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmPEZ-0005Wr-LP for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 05:17:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmPEV-0005Ub-EZ for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 05:17:15 -0400 Received: from [199.232.76.173] (port=42651 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmPEV-0005UP-5u for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 05:17:11 -0400 Received: from mail-ew0-f160.google.com ([209.85.219.160]:46765) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LmPEU-0001ip-Ke for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 05:17:10 -0400 Received: by ewy4 with SMTP id 4so2878310ewy.42 for ; Wed, 25 Mar 2009 02:17:09 -0700 (PDT) In-Reply-To: <49C9E606.2050305@cern.ch> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Yury GEORGIEVSKIY Cc: emacs-orgmode@gnu.org Why don't you just use CSS to change the font size in
 examples?

Having different font sizes for different examples will look terrible.

- Carsten

On Mar 25, 2009, at 9:06 AM, Yury GEORGIEVSKIY wrote:

> Hello,
>
> I'm using orgmode to make user documentation.
>
> A lot of my Literal Examples are too big to fit
> on the A4 paper to print them out.
>
> In order to fit them on the A4, I'm changing HTML font size
> every time.
>
> To be more vivid - I've attached an example to export in HTML
> (example.org) and "fat" literal example (seq_diag.txt)
> that will be resized.
>
> First diagram will fit on A4 paper, while second one will not,
> as it is too big.
>
> I think may be it's a good idea to add the switch for changing
> font size, where size can be expressed in percentage or/and
> paper size.
>
> It can look something like:
> #+BEGIN_EXAMPLE -f 60%
> or
> #+BEGIN_EXAMPLE -f A4
>
> Thanks in advance,
> Yury
> #+TITLE:   Pretty print.
> #+STARTUP: hidestars
> #+OPTIONS: toc:nil
>
> * Shrinked Sequential diagram.
>
> #+BEGIN_HTML
> 
> 
> #+END_HTML
>
> #+BEGIN_EXAMPLE
> #+INCLUDE "seq_diag.txt"
> #+END_EXAMPLE
>
> #+BEGIN_HTML
> 
> #+END_HTML
>
> * Normal Sequential diagram.
> #+BEGIN_EXAMPLE
> #+INCLUDE "seq_diag.txt"
> #+END_EXAMPLE
>                                        QDP Sequence diagram.
>
> User application                                    | 
> <--------------------- RTI ------------------------->|
>                                                     
> |                                                     |
> +------+                                            +------ 
> +                +------+   +------+   +-------+
> |      |                                            |       
> |                |      |   |      |   |       |
> |  BC  |                                            |  PP   
> |                |  FP  |   |  TB  |   |  AMT  |
> |      |                                            |       
> |                |      |   |      |   |       |
> +---+--+                                            +---+-- 
> +                +---+--+   +---+--+   +---+---+
>    |                                                    
> |                       |          |          |
>    |                                                    
> |                       |          |         +-+
>    |    send_quick_data(RS_ECHO | RS_CONF | RS_REF )  +- 
> +                      |          |         | |
>    +------------------------------------------------->|  
> |                      |          |         | +------------+
>    |                                                  |  
> |                      |          |         | |            |
>    |           user can check Transmit Buffer         |  
> |                      |          |         | |            |
>    |<-------------------------------------------------+  
> |                      |          |         | |            |
>    |                                                  |  
> |                      |          |         | |  fill in   |
>    |           get_quick_data                         |  
> |                      |          |         | |            |
>   +- 
> + 
> ------------------------------------------------------------------------------------> 
> |         | | aquisition |
>   | |                                                 |  
> |                      |          |         | |            |
>   | |                                                 |  
> |                      |       acq_msg      | |  message   |
>   | |                                           if (RS_ECHO |  
> RS_CONF)         |<-------------------+ |<-----------+
>   | |                                                 | |          
> ctrl_msg     |          |         | |
>   | |                                                 |  
> +--------------------->|          |         | |
>   | |                                                 | |          
> conf_msg     |          |         | |
>   | |                                                 |  
> |                      |          |         | |
>   | |                                                 |  
> |                      |          |         | |
>   | |                                           else  
> (RS_REF)                  |          |         | |
>   | |                                                 |  
> +----------------+     |          |         | |
>   | |                                                 | |   change  
> RTI   |     |          |         | |
>   +-+                                                 | |   
> configuration |     |   fill   |         | |
>    |                                                  | | 
> <---------------+     +--------->|         | |
>    |                                                  |  
> |                      |  buffer  |         | |
>    |                                          POWC data is  
> ready               |          |         | |
>    | 
> < 
> -------------------------------------------------------------------------------------+ 
>          | |
>    |                                                  |  
> |                      |          |         | |
>    |                                                  +- 
> +                      |          |         | |
>    |                                                    
> |                       |          |         | |
>    |                                                    
> |                       |          |         | |
>    |                                                    
> |                       |          |         | |
>    |                                                    
> |                       |          |         +-+
>
>
>    BC  - Bus Controller. Application level.
>    PP  - Process Packet.
>    FP  - Feed Packet.
>    TB  - Transmit Buffer.
>    AMT - Acqusition Message Task thread.
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode