From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EC3OHE/At2DEUAAAgWs5BA (envelope-from ) for ; Wed, 02 Jun 2021 19:30:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cD4lGE/At2CSQAAA1q6Kng (envelope-from ) for ; Wed, 02 Jun 2021 17:30:55 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B9D72182F0 for ; Wed, 2 Jun 2021 19:30:54 +0200 (CEST) Received: from localhost ([::1]:40688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loUhg-0004P6-Ao for larch@yhetil.org; Wed, 02 Jun 2021 13:30:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loUfC-0002Xz-IB for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 13:28:18 -0400 Received: from ciao.gmane.io ([116.202.254.214]:37232) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loUf9-0003pH-8a for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 13:28:17 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1loUf7-0005lb-4E for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 19:28:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Nick Dokos Subject: Re: LaTeX fragment preview weirdness Date: Wed, 02 Jun 2021 13:28:08 -0400 Message-ID: <8735u0w507.fsf@alphaville.usersys.redhat.com> References: <49a9e4a9-8787-6951-6c98-062426fb5202@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:VAWVmzBKgNyom3IH13IDYTJEW4c= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622655055; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=1rHl5makDYhfZLo7W8qNF4ltJBb5rxYjpmqi5+zmQo8=; b=eE28thlCW5HloccPKPA2D4kcWlpzIlj7igkNXZUMaLfo79A43t+x2DLz7SpFxWZ5izKPsZ jN6hdk7TgqEhlnIkmxCv/XCmaR0x38VzJZiNW2vr2jiTZGbk1inkaSzdVVMy/QD0P5Dg7+ VMrds7uHpRi9NzTZhbaE03A1tvF2G6bt0ob0sq6utby9BwNm7GpscNMSHoSe/MQc+rS1Yr 1dlH4ERf4q8EatOzpZI12TxlgoC4GHCEvhahrRV60fdqRYXacf+afmvOVl+QVSM3duxJuy 3NQS0lJl4xo3k7QzHkt7OAojT6KPDL3dZIZYgF6gN1LDNS6C5nTxAqMywQn53w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622655055; a=rsa-sha256; cv=none; b=CBP6a5xDoCgzaAFzB/p5Y2+6SlD0iMe41iSu0FHuWJqK2c92QaZmtpB/eylWQo2oKTv2K6 MIikpH+HtbPm//V7ObDqbsehtDjZ11vDd7MSzloL7owL1sGDPtn9w5XEdZF5ktlEsfnJMc o4lT8a8YyHG9ZvewyQxbpRk5DBOR+JWUU6e4A9IgXoRE+n7QNn4MAfceHrqUkpfk9f/SRl vFs1scmBFUzR7CUrrxaqvJR0I4kVBLP9uplONeOOHqhbMrM+g3gugmfNo+3n3uKm+NiSBl onx+En6rUIk+gZM4AQSJOuU4L2YSL3yUq2kzMwsTR+Dob5QXdkDS4wuv+lvUlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.83 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B9D72182F0 X-Spam-Score: -1.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: Elq4N05sLTPf Scott Randby writes: > First, I'm using Emacs 27.2 and Org 9.4.6. > > I have the following code in an Org file: > > #+latex_header: \hypersetup{pdfauthor={Author},pdftitle={Title},pdfsubject={Subject},pdfkeywords={keyword},pdfproducer={Emacs Org},pdfcreator={pdflatex}} > #+latex_header: \hypersetup{colorlinks=true,urlcolor=blue,linkcolor=black} > > The above lines are in a section at the end of my document. > > When I do C-c C-x C-l in a section (or with a fragment at point), the following appears above every fragment that is previewed: > > pdfauthor=Author,pdftitle=Title,pdfsubject=Subject,pdfkeywords=keyword,pdfproducer=Emacs Org,pdfcreator=pdflatex colorlinks=true,urlcolor=blue,linkcolor=black > > Here is a sample section from my Org file: > > --BEGIN-- > > * Distance Formula > > Let $d$ be the distance between $(x_{1}, y_{1})$ and $(x_{2}, y_{2})$. > \[ > d=\sqrt{\left(x_{1}-x_{2}\right)^{2}+\left(y_{1}-y_{2}\right)^{2}} > \] > > --END-- > > You probably want #+LATEX_HEADER_EXTRA, not #+LATEX_HEADER. Do (info "(org) Latex header and sectioning") where it says: #+BEGIN_QUOTE The LaTeX export back-end appends values from ‘LATEX_HEADER’ and ‘LATEX_HEADER_EXTRA’ keywords to the LaTeX header. The docstring for ‘org-latex-classes’ explains in more detail. Also note that LaTeX export back-end does not append ‘LATEX_HEADER_EXTRA’ to the header when previewing LaTeX snippets (see *note Previewing LaTeX fragments::). #+END_QUOTE -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler