I am using Quarto Book for writing an online Book for my students on scientific writing skills (see politik-wissenschaft.at).
After updating Quarto from 1.1.x to 1.2.280 I cannot use certain options in the _quarto.yml anymore. These options are the following after "book:"
project:
type: book
book:
orcid: "0000-0003-2625-3631"
date-modified: "2022-11-18"
lang: de
logo: "images/pwa-cover.png"
favicon: "images/pwa-cover.png"
link-external-icon: false
link-external-newwindow: false
These are the Error Messages I receive:
ERROR: Project _quarto.yml validation failed.
In file _quarto.yml
(line 8, columns 3--8) property name orcid is invalid
7: author: "Franz Eder"
8: orcid: "0000-0003-2625-3631"
~~~~~~
9: date: "2022-11-10"
ℹ The error happened in location book:orcid.
In file _quarto.yml
(line 10, columns 3--16) property name date-modified is invalid
9: date: "2022-11-10"
10: date-modified: "2022-11-18"
~~~~~~~~~~~~~~
11: doi: "10.25651/4.2022.0001"
ℹ The error happened in location book:date-modified.
In file _quarto.yml
(line 13, columns 3--17) property name abstract-title is invalid
12: abstract: "Eder, Franz. 2022. *Politikwissenschaftliches Arbeiten: Eine Einführung*. Innsbruck: Institut für Politikwissenschaft, Universität Innsbruck. [https://doi.org/10.25651/4.2022.0001](https://doi.org/10.25651/4.2022.0001)."
13: abstract-title: "How to cite?"
~~~~~~~~~~~~~~~
14: language: de
ℹ The error happened in location book:abstract-title.
ℹ Did you mean abstract-url?
In file _quarto.yml
(line 15, columns 3--7) property name logo is invalid
14: language: de
15: logo: "images/pwa-cover.png"
~~~~~
16: downloads: [pdf, epub]
ℹ The error happened in location book:logo.
In file _quarto.yml
(line 21, columns 3--21) property name link-external-icon is invalid
20: open-graph: true
21: link-external-icon: false
~~~~~~~~~~~~~~~~~~~
22: link-external-newwindow: false
ℹ The error happened in location book:link-external-icon.
In file _quarto.yml
(line 22, columns 3--26) property name link-external-newwindow is invalid
21: link-external-icon: false
22: link-external-newwindow: false
~~~~~~~~~~~~~~~~~~~~~~~~
23: site-url: https://www.politik-wissenschaft.at
ℹ The error happened in location book:link-external-newwindow.
Can someone tell me what to do? What are my alternatives? Of course, I could comment the "logo" option, but than the logo is gone on the Website.
You have to ensure the right places for orcid (Author) and the logo (sidebar), i.e.
project:
type: book
book:
title: Example Title
author:
- name: Franz Eder
orcid: 0000-0003-2625-3631
date: today
sidebar:
logo: cover.png
chapters:
- index.qmd
- intro.qmd
- summary.qmd
- references.qmd
Output:
Related
R_markdown can't compile my code in pdf-file, because package lmodern doesn't like cyrillic symbols. Could I disable lmodern in the header of rmarkdown and how if i could? This doesn't help:
---
title: "«Ластовецкий Дмитрий_ДКР2_ПСА-3"
author: "Ластовецкий Дмитрий"
date: "08 06 2021"
output:
pdf_document:
extra_dependencies:
lmodern: NULL
header-includes:
- \usepackage[T2A]{fontenc}
- \usepackage[utf8]{inputenc}
lang: ru-RU
---
# Задание 1:
Для задачи классификации я решил выбрать датасет, использованный маркетологами банков Португалии. Описание всех оригинальных переменных можно прочитать на кэггл (https://www.kaggle.com/sonujha090/bank-marketing) Приведу описания только тех переменных, что пригодились мне в ходе исследования (после моих преобразований, замены строчных данных на binary), а также верхнюю часть итоговой таблицы данных:
The error now is:
! Font T2A/cmr/m/n/10=larm1000 at 10.0pt not loadable: Metric (TFM) file not fo
und.
<to be read again>
relax
l.112 ...\familydefault\seriesdefault\shapedefault
! name = larm1000, rootname = larm, pointsize = 1000
! mktexmf: empty or non-existent rootfile!
! mktexmf: empty or non-existent rootfile!
! kpathsea: Running mktexmf larm1000.mf
! The command name is C:\Users\79671\AppData\Roaming\TinyTeX\bin\win32\mktexmf
! Cannot find larm1000.mf.
! Cannot find larm1000.mf.
! kpathsea: Running mktextfm larm1000
! The command name is C:\Users\79671\AppData\Roaming\TinyTeX\bin\win32\mktextfm
! kpathsea: Appending font creation commands to missfont.log.
In TeXStudio errors are:
line 112: Font T2A/cmr/m/n/10=larm1000 at 10.0pt not loadable: Metric (TFM) file not found. ...\familydefault\seriesdefault\shapedefault
line 539: Font T2A/lmr/m/n/10=larm1000 at 10.0pt not loadable: Metric (TFM) file not found. ...andafter\ifx\the\font\nullfont\normalfont
line 76: Missing \begin{document}. \nobreakspace
line 1161: Package babel Error: Unknown option 'russian'. Either you misspelled itd. \ExecuteOptions{\bbl#opt#main}
line 1163: Package babel Error: Unknown option 'russian'. Either you misspelled itd. \ProcessOptions*
line 95: pdfTeX error (font): invalid font identifier. \begin{document}
line 112: Font shape `T2A/lmr/m/n' undefined(Font) using `T2A/cmr/m/n' instead
: No file Ластовецкий_ДКР2_ПСА-3.aux.
This question covers R Studio, pandoc and also LaTeX I suppose. The following is what my YAML looks like in R Studio:
---
name: Me Me Me
surname: Myself
position: "Job seeker"
address: "Some address in Newfoundland"
phone: +1 800 111111
www: google.com
email: "myemail#yahoo.com"
linkedin: john-joseph-jingle-jabber-smith/123
date: "`r format(Sys.time(), '%B %Y')`"
output: vitae::moderncv
theme: classic
---
In the footer, the page number is displayed. People with a similar problem have fixed this by changing the LaTeX preamble, but I have no such file, instead I have a collection of one .cls and several .sty files. Which of these would I need to change in order to suppress page numbering? Or is it possible to add pandoc args for this in the preamble?
moderncv has the \nopagenumbers macro to switch off page numbers:
---
name: Me Me Me
surname: Myself
position: "Job seeker"
address: "Some address in Newfoundland"
phone: +1 800 111111
www: google.com
email: "myemail#yahoo.com"
linkedin: john-joseph-jingle-jabber-smith/123
date: "`r format(Sys.time(), '%B %Y')`"
output:
vitae::moderncv:
keep_tex: true
header-includes:
- \nopagenumbers
theme: classic
---
test
\clearpage
test
Ive tried now for some time to get the following code to work, but I keep getting this error message. What am I doing wrong?
from ib_insync import IB
ib = IB()
ib.connect("127.0.0.1",7497,clientId=1)
stock = Stock("AMD","SMART","USD")
bars = ib.reqHistoricalData(
stock,
endDateTime="",
durationStr="30 D",
barSizeSetting="1 hour",
whatToShow="MIDPOINT",
useRTH="True"
)
print(bars)
Error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:/Users/Ejer/Desktop/TWS/option.py", line 1, in <module>
from ib_insync import IB
File "c:\Users\Ejer\Miniconda3\lib\site-packages\ib_insync\__init__.py", line 21, in <module>
from .objects import *
File "c:\Users\Ejer\Miniconda3\lib\site-packages\ib_insync\objects.py", line 155, in <module>
class UnderComp(Object):
File "c:\Users\Ejer\Miniconda3\lib\site-packages\ib_insync\objects.py", line 156, in UnderComp
defaults = ibapi.contract.UnderComp().__dict__
AttributeError: module 'ibapi.contract' has no attribute 'UnderComp'
>>>
Seems, you are using the old ib-insync package (ver 0.9.11). Try to install the latest version ib-insync 0.9.64, that worked for me.
Also, follow the group for more information: https://groups.io/g/insync
In order to allow users to upload documents on my website, I am trying to add form validation on a symfony2 application. According to this doc : http://symfony.com/doc/current/reference/constraints/File.html , I should create a validation.yml file with this syntax :
# src/Acme/BlogBundle/Resources/config/validation.yml
Acme\BlogBundle\Entity\Author
properties:
bioFile:
- File:
maxSize: 1024k
mimeTypes: [application/pdf, application/x-pdf]
mimeTypesMessage: Please upload a valid PDF
I have tried to type/edit this file in a lot of ways, yet I always get a parsing error when the file is executed :
Unable to parse in "\/***\/***\/dev\/***\/src\/***\/***Bundle\/Resources\/config\/validation.yml" at line 1 (near "***\***\Entity\Author").
I tried to test this code with this online YML parsing tool : http://yaml-online-parser.appspot.com/, and it says the colon on line 3 just after "properties" is wrong :
Output
ERROR:
mapping values are not allowed here
in "<unicode string>", line 3, column 13:
properties:
^
What am I missing here? Why is the YML syntax used in symfony documentation not accepted by this online parser? Note that I am aware of the tab indentation vs. space indentation for .yml files.
I am developing a Ruby on Rails application with I18n support. I created a YAML file. But Rails report there is syntax error in the YAML file.
I found that if I decrease the level of indentation for that error line, no error message come out again.
Is there any limitation on YAML indentation level (in Ruby on Rails)?
Here is YAML block. The line fulltime: "Full Time" was reported has syntax error.
en:
jobs:
new:
positiontitle: "Position Title"
country: "Country"
city: "City"
employmenttype: "Employment Type"
fulltime: "Full Time"
parttime: "Part Time"
Thanks everyone. :)
there's no limitation. possible cause of error is using a TAB characters instead of spaces when indenting YAML file lines
also your yaml file indentation is meaningless - if you want to indent fulltime & parttime - then you have to remove "Employment Type" string, so:
en:
jobs:
new:
positiontitle: "Position Title"
country: "Country"
city: "City"
employmenttype:
fulltime: "Full Time"
parttime: "Part Time"