From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?iso-8859-1?Q?Vincent_Bela=EFche?= Newsgroups: gmane.emacs.devel Subject: RE: cal-tex.el landscape patch Date: Tue, 22 Aug 2017 22:05:16 +0000 Message-ID: References: , <874lt03wz2.fsf@jane> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_AM5PR10MB067687F910BB8B3E5D9E0B3484840AM5PR10MB0676EURP_" X-Trace: blaine.gmane.org 1503439544 21178 195.159.176.226 (22 Aug 2017 22:05:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 22 Aug 2017 22:05:44 +0000 (UTC) Cc: emacs-devel To: Marcin Borkowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 23 00:05:33 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkHIf-0004rq-5k for ged-emacs-devel@m.gmane.org; Wed, 23 Aug 2017 00:05:29 +0200 Original-Received: from localhost ([::1]:32897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkHIl-0006dJ-LQ for ged-emacs-devel@m.gmane.org; Tue, 22 Aug 2017 18:05:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkHIZ-0006c6-2l for emacs-devel@gnu.org; Tue, 22 Aug 2017 18:05:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkHIV-0007lA-SN for emacs-devel@gnu.org; Tue, 22 Aug 2017 18:05:23 -0400 Original-Received: from mail-oln040092065023.outbound.protection.outlook.com ([40.92.65.23]:64048 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dkHIV-0007k7-Gr for emacs-devel@gnu.org; Tue, 22 Aug 2017 18:05:19 -0400 Original-Received: from HE1EUR01FT029.eop-EUR01.prod.protection.outlook.com (10.152.0.59) by HE1EUR01HT097.eop-EUR01.prod.protection.outlook.com (10.152.1.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1341.15; Tue, 22 Aug 2017 22:05:16 +0000 Original-Received: from AM5PR10MB0676.EURPRD10.PROD.OUTLOOK.COM (10.152.0.55) by HE1EUR01FT029.mail.protection.outlook.com (10.152.0.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1341.15 via Frontend Transport; Tue, 22 Aug 2017 22:05:16 +0000 Original-Received: from AM5PR10MB0676.EURPRD10.PROD.OUTLOOK.COM ([fe80::7809:87f5:3097:fd25]) by AM5PR10MB0676.EURPRD10.PROD.OUTLOOK.COM ([fe80::7809:87f5:3097:fd25%13]) with mapi id 15.01.1362.019; Tue, 22 Aug 2017 22:05:16 +0000 Thread-Topic: cal-tex.el landscape patch Thread-Index: AQHTGod4AUzM6bbSVkywIfPXHbKr+KKP9J2AgAC9I+0= In-Reply-To: <874lt03wz2.fsf@jane> Accept-Language: fr-FR, en-US Content-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=hotmail.fr; x-incomingtopheadermarker: OriginalChecksum:286DB7FABF516230AE11AAA2B1E1A5AAC2BA0DCDD0FF21206C457C7EA15E1250; UpperCasedChecksum:000834F6F266F3E0CA7E0C8BE94588B8999D96ACA0704DAFD7204B60CC3F6B8E; SizeAsReceived:7061; Count:47 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [GpxYEiHtEmodaaovlPWAnt/QrC9+4a78] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1EUR01HT097; 6:HcKolwu5kixSGoEgOYcXhRDLh/yNAIabZv7eJRcVY5SZ+qWLOEk5ZD+Y6GR97i5lzTOz3+2fjDGTEra+7WjQ3nyIEedHuIrVHEfD1YjInHRXfV2SAdtEXDrRA7v8ff9rUbe3Vrxb9nmktr1RtlTJPZjmS8xbboMW42VdIxor/ClCUjLoSNcX3QZA1cpTL+vbkZ8NOXgXo/w/P4zBicYJEAZXDCmQDwKqIfCiVqDdUuUJJHxKlF0rOgRCxk4AgwYNNxwZZ5NqbxGjtTaDk6GhUmLzwdhzl6+dmD0KtB0QvdwvpKhPYAb7cTfz0ihEYJ9UxhMPTzltxthPSe4FmWZ9Ow==; 5:Y0qHAlb0+u+6eoh1IbCYq66okePDXWoQxSn9+AV6LgtnMvwE9Y7Z6uifpIpAxDMJQoE/fV0218Z9EBNjpdVee7s/6dYa6CkPDtgRgScWQ/5A0C3frlRIwyk9E9TeSG/TvgrtgDcA5pHafnGl6azt2A==; 24:pKXb96JqjsPHB2P5ds61HL5UP+i9/j3igDhN/CZ6/GSUMsagdvKmRF3lSKgjPhTYQZe9JGG1AkUZM0R0gkB81JthKR/WhpZwTWghI4Br8q8=; 7:kE5QXUe2/OiSRD923pnd863TO0a0beYwVcuQhwjXPXR17TsDuDyhfkhXKuG0Nq26OyfALph8YVgzNZo5WQl2NHBMXsSXzD6FIxAcuRwTpeoukytUW0Epxy8moYeZ5YJg/7jjgm0dUJynT4VttDvTQiSm/uf3nJWPxQf5OvrnTn4beqdZ1Fu9t5pnTDX38YgFuSV0mLJviB1IF9yvP4XeQ7zVRL44VU/oa x-incomingheadercount: 47 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:HE1EUR01HT097; H:AM5PR10MB0676.EURPRD10.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 5aab1580-1952-424c-1887-08d4e9a9deca x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322377)(1603101448)(1601125374)(1701031045)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:HE1EUR01HT097; x-ms-traffictypediagnostic: HE1EUR01HT097: x-exchange-antispam-report-test: UriScan:(788757137089)(170290950945281); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031); SRVR:HE1EUR01HT097; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1EUR01HT097; x-forefront-prvs: 04073E895A spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Aug 2017 22:05:16.1832 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT097 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.92.65.23 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217705 Archived-At: --_000_AM5PR10MB067687F910BB8B3E5D9E0B3484840AM5PR10MB0676EURP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, Yes I fully agree that there is room to improve it. For fitting to the paper dimension, the simplest would be to have the LaTeX= code derive box sizes (\cellwidth...) from \textheight & \textwidth, and d= erive in turn \textheight & \textwidth from \paperheight & \paperwidth and = the wanted margin. All of this can be done in the LaTeX code. Another area of improvement would be to replace \usepackage[latin1]{inputen= c} by the adquate encoding when holidays are used, or week days name are no= t English. Vincent. ________________________________ De : Marcin Borkowski Envoy=E9 : mardi 22 ao=FBt 2017 09:04 =C0 : Vincent Bela=EFche Cc : emacs-devel Objet : Re: cal-tex.el landscape patch On 2017-08-21, at 16:19, Vincent Bela=EFche wrote: > Hello, > > Not being the maintainer of calendar, I would like to get your > approval/brickbats/comments before commiting this : the objective is to > make landscape by landscape class option + \usepackage{geometry}, rather > than \special{landscape} in the preamble. > > The advantage of this way is that this it works directly if you compile > with pdflatex, rather than latex+dvips+ps2pdf. To achieve this I had to > change some of the function prototypes, the landscape argument is > removed, and landscape option is passed just as another class option. +1 And my 2 cents: Not being the maintainer either, but sometimes a user, I'm for it. However, I feel that cal-tex requires a general overhaul. The LaTeX file it produces doesn't look really great (neither the source nor the output). And it doesn't fit on A4. I could try to do that overhaul. For starters, enable A4 calendars; also, why not use TikZ to draw the boxes (at least as an option)? WDYT? Best, -- Marcin Borkowski --_000_AM5PR10MB067687F910BB8B3E5D9E0B3484840AM5PR10MB0676EURP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello,

Yes I fully agree that there is room to improve it.

For fitting to the paper dimension, the simplest would be to have the La= TeX code derive box sizes (\cellwidth...) from \textheight & \textwidth= , and derive in turn \textheight & \textwidth from \paperheight & \paperwid= th and the wanted margin. All of this can be done in the LaTeX code.

Another area of improvement would be to replace \usepackage[latin1]{inpu= tenc} by the adquate encoding when holidays are used, or week days name are= not English.


  Vincent.



De : Marcin Borkowski <= ;mbork@mbork.pl>
Envoy=E9 : mardi 22 ao=FBt 2017 09:04
=C0 : Vincent Bela=EFche
Cc : emacs-devel
Objet : Re: cal-tex.el landscape patch
 

On 2017-08-21, at 16:19, Vincent Bela=EFche <vincent.b.1@hotmail.fr> = wrote:

> Hello,
>
> Not being the maintainer of calendar, I would like to get your
> approval/brickbats/comments before commiting this : the objective is t= o
> make landscape by landscape class option + \usepackage{geometry}, = rather
> than \special{landscape} in the preamble.
>
> The advantage of this way is that this it works directly if you compil= e
> with pdflatex, rather than latex+dvips+ps2pdf.  To achiev= e this I had to
> change some of the function prototypes, the landscape argument is
> removed, and landscape option is passed just as another class option.<= br>
+1

And my 2 cents:

Not being the maintainer either, but sometimes a user, I'm for it.
However, I feel that cal-tex requires a general overhaul.  The LaTeX file it produces doesn't look really great (neither the source nor the
output).  And it doesn't fit on A4.

I could try to do that overhaul.  For starters, enable A4 calendars; also, why not use TikZ to draw the boxes (at least as an option)?  WDY= T?

Best,

--
Marcin Borkowski
--_000_AM5PR10MB067687F910BB8B3E5D9E0B3484840AM5PR10MB0676EURP_--