Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having issues with mobile. #30

Open
michael-byrd opened this issue Aug 16, 2023 · 4 comments
Open

Having issues with mobile. #30

michael-byrd opened this issue Aug 16, 2023 · 4 comments

Comments

@michael-byrd
Copy link

Having issues with preamble commands working on iPhone and iPad, but works great on MacBook.

Using iCloud for storage.

@wei2912
Copy link
Owner

wei2912 commented Aug 19, 2023

@michael-byrd Could you check if the plugin loads in Obsidian mobile? Under Settings > Community Plugins, you can use the following option:

image

Also, can I see the exact contents of your preamble.sty and which commands don't work?

@michael-byrd
Copy link
Author

Plugin looks to be loading correctly, took 14ms .

\newcommand{\tr}[1]{\operatorname{trace}\left(#1\right)}
\newcommand{\abs}[1]{\left|#1\right|}
\newcommand{\norm}[1]{\left\| #1\right\| }
\newcommand{\br}[1]{\left\lbrace  #1\right\rbrace  }



\newcommand{\vspan}[1]{\operatorname{span}\left(#1\right)}
\newcommand{\conv}[1]{\operatorname{conv}\left(#1\right)}



\newcommand{\CC}{\mathbb{C}}
\newcommand{\NN}{\mathbb{N}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\QQ}{\mathbb{Q}}

\newcommand{\cA}{\mathcal{A}}
\newcommand{\cE}{\mathcal{E}}
\newcommand{\cM}{\mathcal{M}}


\newcommand{\vocab}[1]{\textbf{\color{red} #1}}

Here is the preamble. I don't think any of the commands are working on mobile.

@wei2912
Copy link
Owner

wei2912 commented Aug 25, 2023

@michael-byrd Unfortunately I don't have an iOS device to test, but perhaps you could try https://github.com/KjellConnelly/obsidian-dev-tools and opening up the console to see if there are any errors? All the commands you wrote should work fine on mobile.

@X3ndor
Copy link

X3ndor commented Nov 28, 2023

Hey @michael-byrd. I don't know if you have already found a solution, but I just found out, that on mobile, you can use the homepage plugin and insert all the commands from your preamble within a MathJax math environment, i.e. within $$..$$, on the "homepage" page (from the plugin). This "homepage" is the first page that gets loaded when you open obsidian and if you place your commands within a math environment on that page, then every page that loads after this on has access to those commands (at least that's what I understood). Hope that helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants