Skip to content

Commit

Permalink
feat(add): vim TeX root setting
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed Sep 23, 2023
1 parent 6541572 commit 1ba56f0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion controller/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,19 @@ def alert_error_tryagain(message=""):
PS_INSTRUCT = r"""% Input your problem and solution below.
% Three dashes on a newline indicate the breaking points.
% URL detected: {url}
% TEX root = {preview_path}
"""


def solicit_user_for_content(raw_text: str, url: str, opts: Namespace):
del opts
initial = (
PS_INSTRUCT.format(url=url if url != "<++>" else "None") + NSEPARATOR + raw_text
PS_INSTRUCT.format(
url=url if url != "<++>" else "None",
preview_path=preview.VON_PREVIEW_PATH,
)
+ NSEPARATOR
+ raw_text
)

def pre_hook(tempfile_name: str):
Expand Down

0 comments on commit 1ba56f0

Please sign in to comment.